aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorVolodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>2026-09-10 10:49:05 +0200
committerVolodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>2026-09-10 11:13:36 +0200
commit1a3ebc620d1ba01ac44602303388dc454d4378f5 (patch)
treec90c5c3f6f2031ce98259d4294f7e1d09c0ecb97 /runtime/syntax/python.vim
parent0c9012f295eedd7283bbf7f9a0fbef3781ba50f4 (diff)
downloadrneovim-1a3ebc620d1ba01ac44602303388dc454d4378f5.tar.gz
rneovim-1a3ebc620d1ba01ac44602303388dc454d4378f5.tar.bz2
rneovim-1a3ebc620d1ba01ac44602303388dc454d4378f5.zip
fix(klib): parenthesize kvec macro arguments
Problem: The kvec append and reserve macros do not parenthesize length arguments. Compound expressions can change the allocation and copy sizes, causing buffer overflows for elements larger than one byte. The append macros also expand to bare if statements, making them unsafe to use in unbraced if/else statements. Solution: Parenthesize length and data arguments and wrap both append macros in do/while statements. AI-assisted
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions