Skip to content

Commit d8cee76

Browse files
committed
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.
1 parent 5245beb commit d8cee76

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/userfunc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ get_function_body(
870870
end = p + STRLEN(p) - 1;
871871
while (end > p && VIM_ISWHITE(*end))
872872
--end;
873-
if (*end == '{')
873+
if (end > p && *end == '{')
874874
{
875875
--end;
876876
while (end > p && VIM_ISWHITE(*end))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3170,
758760
/**/
759761
3169,
760762
/**/

0 commit comments

Comments
 (0)