Patch 9.0.0368
Problem: Old Coverity warning for using NULL pointer.
Solution: Bail out if dictionary allocation fails.
Files: src/tag.c
*** ../vim-9.0.0367/src/tag.c 2022-09-03 10:52:18.395075356 +0100
--- src/tag.c 2022-09-03 12:55:52.790623003 +0100
***************
*** 4384,4390 ****
--- 4384,4394 ----
}
if ((dict = dict_alloc()) == NULL)
+ {
ret = FAIL;
+ vim_free(matches[i]);
+ break;
+ }
if (list_append_dict(list, dict) == FAIL)
ret = FAIL;
*** ../vim-9.0.0367/src/version.c 2022-09-03 12:53:17.223026199 +0100
--- src/version.c 2022-09-03 12:57:47.050329193 +0100
***************
*** 709,710 ****
--- 709,712 ----
{ /* Add new patch number below this line */
+ /**/
+ 368,
/**/
--
The budget process was invented by an alien race of sadistic beings who
resemble large cats.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/20220903120013.27EE81C0CE4%40moolenaar.net.