mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
5245beb37c
commit
d8cee76b49
@ -870,7 +870,7 @@ get_function_body(
|
|||||||
end = p + STRLEN(p) - 1;
|
end = p + STRLEN(p) - 1;
|
||||||
while (end > p && VIM_ISWHITE(*end))
|
while (end > p && VIM_ISWHITE(*end))
|
||||||
--end;
|
--end;
|
||||||
if (*end == '{')
|
if (end > p && *end == '{')
|
||||||
{
|
{
|
||||||
--end;
|
--end;
|
||||||
while (end > p && VIM_ISWHITE(*end))
|
while (end > p && VIM_ISWHITE(*end))
|
||||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3170,
|
||||||
/**/
|
/**/
|
||||||
3169,
|
3169,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user