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 -- [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/202007101832.06AIWINV1968539%40masaka.moolenaar.net.