annotate src/GvimExt/gvimext_ming.rc @ 33879:d418c82f02a4 v9.0.2149

patch 9.0.2149: [security]: use-after-free in exec_instructions() Commit: https://github.com/vim/vim/commit/5dd41d4b6370b7b7d09d691f9252b3899c66102a Author: Christian Brabandt <cb@256bit.org> Date: Mon Dec 4 22:52:23 2023 +0100 patch 9.0.2149: [security]: use-after-free in exec_instructions() Problem: [security]: use-after-free in exec_instructions() Solution: get tv pointer again [security]: use-after-free in exec_instructions() exec_instructions may access freed memory, if the GA_GROWS_FAILS() re-allocates memory. When this happens, the typval tv may still point to now already freed memory. So let's get that pointer again and compare it with tv. If those two pointers differ, tv is now invalid and we have to refresh the tv pointer. closes: #13621 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2023 15:16:17 +0100
parents 4e2284e71352
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
1 #include <windows.h>
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
2 #define xstr(x) str(x)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
3 #define str(x) #x
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
4 VS_VERSION_INFO VERSIONINFO
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
5 FILEVERSION 1,0,0,1
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
6 PRODUCTVERSION 1,0,0,1
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
7 FILEFLAGSMASK 0x3fL
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
8 #ifdef _DEBUG
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
9 FILEFLAGS 0x3L
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
10 #else
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
11 FILEFLAGS 0x2L
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
12 #endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
13 FILEOS 0x4L
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
14 FILETYPE VFT_DLL
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
15 FILESUBTYPE 0x0L
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
16 {
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
17 BLOCK "StringFileInfo"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
18 {
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
19 BLOCK "040904b0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
20 {
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
21 VALUE "Comments", "Developed using COM architecture!\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
22 VALUE "CompanyName", "Tianmiao Hu's Developer Studio\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
23 VALUE "FileDescription", "A small project for the context menu of gvim!\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
24 VALUE "FileVersion", "1, 0, 0, 1\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
25 VALUE "InternalName", "gvim right-click menu extension\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
26 VALUE "LegalCopyright", "Copyright © 1999 Tianmiao Hu\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
27 VALUE "LegalTrademarks", "Tianmiao Hu's Gvim Context Menu Extension\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
28 VALUE "OriginalFilename", "gvimext.dll\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
29 VALUE "PrivateBuild", "\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
30 VALUE "ProductName", "Tianmiao Hu's gvimext context menu extension\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
31 VALUE "ProductVersion", "1, 0, 0, 1\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
32
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
33 #if defined(__GNUC__)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
34 VALUE "SpecialBuild", "Build With " "MingW " xstr(__GNUC__) "." xstr(__GNUC_MINOR__) "." xstr(__GNUC_PATCHLEVEL__) " on " __DATE__ " " __TIME__ "\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
35 #else
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
36 VALUE "SpecialBuild", "Unknown compiler\0"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
37
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
38 #endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
39 }
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
40 }
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
41 BLOCK "VarFileInfo"
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
42 {
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
43 VALUE "Translation", 0x409, 1200
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
44 }
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
45 }