To: vim_dev@googlegroups.com Subject: Patch 9.0.0368 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///