mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3170: Illegal memory access in test
Problem: Illegal memory access in test. Solution: Check pointer is not before the start of the line.
This commit is contained in:
@@ -870,7 +870,7 @@ get_function_body(
|
||||
end = p + STRLEN(p) - 1;
|
||||
while (end > p && VIM_ISWHITE(*end))
|
||||
--end;
|
||||
if (*end == '{')
|
||||
if (end > p && *end == '{')
|
||||
{
|
||||
--end;
|
||||
while (end > p && VIM_ISWHITE(*end))
|
||||
|
Reference in New Issue
Block a user