Patch 8.2.3170
Problem: Illegal memory access in test.
Solution: Check pointer is not before the start of the line.
Files: src/userfunc.c
*** ../vim-8.2.3169/src/userfunc.c 2021-07-15 22:03:46.979932830 +0200
--- src/userfunc.c 2021-07-15 23:14:01.614596242 +0200
***************
*** 870,876 ****
end = p + STRLEN(p) - 1;
while (end > p && VIM_ISWHITE(*end))
--end;
! if (*end == '{')
{
--end;
while (end > p && VIM_ISWHITE(*end))
--- 870,876 ----
end = p + STRLEN(p) - 1;
while (end > p && VIM_ISWHITE(*end))
--end;
! if (end > p && *end == '{')
{
--end;
while (end > p && VIM_ISWHITE(*end))
*** ../vim-8.2.3169/src/version.c 2021-07-15 22:03:46.983932825 +0200
--- src/version.c 2021-07-15 23:14:56.882524986 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3170,
/**/
--
hundred-and-one symptoms of being an internet addict:
158. You get a tuner card so you can watch TV while surfing.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///