aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/func/_memoize.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-22 06:49:59 +0800
committerGitHub <noreply@github.com>2025-02-21 22:49:59 +0000
commitf3f94d2c373e2560f84082c11ced2c3f5c7736bb (patch)
tree476ab8be8f4ae572fb1b80ad901035afb3926701 /runtime/lua/vim/func/_memoize.lua
parentcdedfc3743dfc2bb53e0255f10aefd831275b714 (diff)
downloadrneovim-f3f94d2c373e2560f84082c11ced2c3f5c7736bb.tar.gz
rneovim-f3f94d2c373e2560f84082c11ced2c3f5c7736bb.tar.bz2
rneovim-f3f94d2c373e2560f84082c11ced2c3f5c7736bb.zip
vim-patch:partial:9.1.1131: potential out-of-memory issue in search.c (#32565)
Problem: potential out-of-memory issue in search.c Solution: improve situation and refactor search.c slightly (John Marriott) - In function update_search_stat(): add a check for a theoretical null pointer reference, set and remember the length of lastpat, remove the three calls to STRLEN() and use the various string's associated lengths instead, add a check for an out-of-memory condition. - In function search_for_fuzz_match(): remove a call to strnsave() and thus avoid having to add a check for an out-of-memory condition, also replace the call to STRLEN() by ml_get_buf_len(). closes: vim/vim#16689 https://github.com/vim/vim/commit/b79fa3d9c8a08f15267797511d779e33bd33e68e Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'runtime/lua/vim/func/_memoize.lua')
0 files changed, 0 insertions, 0 deletions