annotate tools/rename.bat @ 33262:6eac4f616293 v9.0.1899

patch 9.0.1899: potential buffer overflow in PBYTE macro Commit: https://github.com/vim/vim/commit/ffb13674d1af1c90beb229867ec989e4fb232df3 Author: Christian Brabandt <cb@256bit.org> Date: Fri Sep 15 20:22:02 2023 +0200 patch 9.0.1899: potential buffer overflow in PBYTE macro Problem: potential buffer overflow in PBYTE macro Solution: Check returned memline length closes: #13083 the PBYTE macro is used to put byte c at a position lp of the returned memline. However, in case of unexpected errors ml_get_buf() may return either "???" or an empty line in which case it is quite likely that we are causing a buffer overrun. Therefore, switch the macro PBYTE (which is only used in ops.c anyhow) to a function, that verifies that we will only try to access within the given length of the buffer. Also, since the macro is only used in ops.c, move the definition from macros.h to ops.c Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Sep 2023 20:30:07 +0200
parents 217c97e06615
children 7a3de23515d6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10032
f0b1cbf9467e commit https://github.com/vim/vim/commit/cb03397abae22e7237511db2e19ad5ef3e5e5f4e
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 mv vim.exe vimw32.exe
f0b1cbf9467e commit https://github.com/vim/vim/commit/cb03397abae22e7237511db2e19ad5ef3e5e5f4e
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 mv tee/tee.exe teew32.exe
f0b1cbf9467e commit https://github.com/vim/vim/commit/cb03397abae22e7237511db2e19ad5ef3e5e5f4e
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 mv xxd/xxd.exe xxdw32.exe
f0b1cbf9467e commit https://github.com/vim/vim/commit/cb03397abae22e7237511db2e19ad5ef3e5e5f4e
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 mv vim.pdb vimw32.pdb
f0b1cbf9467e commit https://github.com/vim/vim/commit/cb03397abae22e7237511db2e19ad5ef3e5e5f4e
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 mv install.exe installw32.exe
18844
217c97e06615 patch 8.1.2409: creating the distribution doesn't work as documented
Bram Moolenaar <Bram@vim.org>
parents: 10032
diff changeset
6 mv uninstall.exe uninstallw32.exe