Patch 8.2.1171
Problem: Possible crash when out of memory.
Solution: Check for NULL pointer. (Dominique Pellé, closes #6432)
Files: src/syntax.c
*** ../vim-8.2.1170/src/syntax.c 2020-06-12 22:59:07.270097188 +0200
--- src/syntax.c 2020-07-10 20:29:01.944616672 +0200
***************
*** 5764,5769 ****
--- 5764,5771 ----
next_arg = skipwhite(arg_end);
vim_free(key);
key = vim_strnsave_up(arg_start, arg_end - arg_start);
+ if (key == NULL)
+ break;
if (STRCMP(key, "CCOMMENT") == 0)
{
if (!eap->skip)
*** ../vim-8.2.1170/src/version.c 2020-07-10 20:24:04.681880420 +0200
--- src/version.c 2020-07-10 20:29:42.996441134 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1171,
/**/
--
You have heard the saying that if you put a thousand monkeys in a room with a
thousand typewriters and waited long enough, eventually you would have a room
full of dead monkeys.
(Scott Adams - The Dilbert principle)
/// 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 ///