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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202107152116.16FLGZET2005888%40masaka.moolenaar.net.