To: vim_dev@googlegroups.com Subject: Patch 8.2.4034 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4034 Problem: Coverity warns for possibly using a NULL pointer. Solution: Check v_partial is not NULL. Files: src/vim9type.c *** ../vim-8.2.4033/src/vim9type.c 2022-01-04 16:05:44.375453494 +0000 --- src/vim9type.c 2022-01-07 20:15:18.914126913 +0000 *************** *** 375,381 **** set_function_type(ufunc); if (ufunc->uf_func_type != NULL) { ! if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial->pt_argc > 0) { type = get_type_ptr(type_gap); --- 375,381 ---- set_function_type(ufunc); if (ufunc->uf_func_type != NULL) { ! if (tv->v_type == VAR_PARTIAL && tv->vval.v_partial != NULL && tv->vval.v_partial->pt_argc > 0) { type = get_type_ptr(type_gap); *** ../vim-8.2.4033/src/version.c 2022-01-07 20:07:40.379361718 +0000 --- src/version.c 2022-01-07 20:16:01.038023688 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4034, /**/ -- hundred-and-one symptoms of being an internet addict: 252. You vote for foreign officials. /// 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 ///