Patch 9.0.0368

2 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 3, 2022, 8:00:25 AM9/3/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages