Patch 8.2.1364

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 4, 2020, 3:46:56 PM8/4/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages