Patch 8.2.3171
Problem: Another illegal memory access in test.
Solution: Check pointer is after the start of the line.
Files: src/userfunc.c
*** ../vim-8.2.3170/src/userfunc.c 2021-07-15 23:15:55.810448802 +0200
--- src/userfunc.c 2021-07-15 23:43:04.564794332 +0200
***************
*** 875,881 ****
--end;
while (end > p && VIM_ISWHITE(*end))
--end;
! if (end > p - 2 && end[-1] == '=' && end[0] == '>')
{
// found trailing "=> {", start of an inline function
if (nesting == MAX_FUNC_NESTING - 1)
--- 875,881 ----
--end;
while (end > p && VIM_ISWHITE(*end))
--end;
! if (end > p + 2 && end[-1] == '=' && end[0] == '>')
{
// found trailing "=> {", start of an inline function
if (nesting == MAX_FUNC_NESTING - 1)
*** ../vim-8.2.3170/src/version.c 2021-07-15 23:15:55.810448802 +0200
--- src/version.c 2021-07-15 23:43:36.164758149 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3171,
/**/
--
hundred-and-one symptoms of being an internet addict:
159. You get excited whenever discussing your hard drive.
/// 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/202107152145.16FLjMCv2014875%40masaka.moolenaar.net.