Patch 8.2.1364
Problem: Invalid memory access when searching for raw string.
Solution: Check for delimiter match before following quote. (closes #6578)
Files: src/search.c
*** ../vim-8.2.1363/src/search.c 2020-06-12 22:59:07.270097188 +0200
--- src/search.c 2020-08-04 21:40:36.967717698 +0200
***************
*** 1928,1935 ****
{
if (lnum == endpos->lnum && (colnr_T)(p - line) >= endpos->col)
break;
! if (*p == ')' && p[delim_len + 1] == '"'
! && STRNCMP(delim_copy, p + 1, delim_len) == 0)
{
found = TRUE;
break;
--- 1928,1935 ----
{
if (lnum == endpos->lnum && (colnr_T)(p - line) >= endpos->col)
break;
! if (*p == ')' && STRNCMP(delim_copy, p + 1, delim_len) == 0
! && p[delim_len + 1] == '"')
{
found = TRUE;
break;
*** ../vim-8.2.1363/src/version.c 2020-08-04 21:04:53.734455965 +0200
--- src/version.c 2020-08-04 21:45:34.570830112 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1364,
/**/
--
"Computers in the future may weigh no more than 1.5 tons."
Popular Mechanics, 1949
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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/202008041946.074Jklql3103492%40masaka.moolenaar.net.