Patch 8.2.1090

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 29, 2020, 4:32:49 PM6/29/20
to vim...@googlegroups.com

Patch 8.2.1090
Problem: May use NULL pointer when skipping over name.
Solution: Always set ll_name_end.
Files: src/eval.c


*** ../vim-8.2.1089/src/eval.c 2020-06-28 18:43:36.292992349 +0200
--- src/eval.c 2020-06-29 22:29:31.935860445 +0200
***************
*** 734,740 ****
{
// When skipping just find the end of the name.
lp->ll_name = name;
! return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags);
}

// Find the end of the name.
--- 734,742 ----
{
// When skipping just find the end of the name.
lp->ll_name = name;
! lp->ll_name_end = find_name_end(name, NULL, NULL,
! FNE_INCL_BR | fne_flags);
! return lp->ll_name_end;
}

// Find the end of the name.
*** ../vim-8.2.1089/src/version.c 2020-06-29 22:24:53.205181859 +0200
--- src/version.c 2020-06-29 22:31:06.431418625 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1090,
/**/

--
Wi n0t trei a h0liday in Sweden thi yer?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// 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