To: vim_dev@googlegroups.com Subject: Patch 8.2.1104 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1104 Problem: Coverity warns for possible NULL pointer use. Solution: Check "pbyts" is not NULL. Files: src/spellsuggest.c *** ../vim-8.2.1103/src/spellsuggest.c 2020-06-29 23:18:39.731914331 +0200 --- src/spellsuggest.c 2020-07-01 13:14:41.066569692 +0200 *************** *** 1406,1412 **** tword[sp->ts_twordlen] = NUL; if (sp->ts_prefixdepth <= PFD_NOTSPECIAL ! && (sp->ts_flags & TSF_PREFIXOK) == 0) { // There was a prefix before the word. Check that the prefix // can be used with this word. --- 1406,1413 ---- tword[sp->ts_twordlen] = NUL; if (sp->ts_prefixdepth <= PFD_NOTSPECIAL ! && (sp->ts_flags & TSF_PREFIXOK) == 0 ! && pbyts != NULL) { // There was a prefix before the word. Check that the prefix // can be used with this word. *** ../vim-8.2.1103/src/version.c 2020-07-01 13:07:34.265145999 +0200 --- src/version.c 2020-07-01 13:15:14.982379204 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1104, /**/ -- SECOND SOLDIER: It could be carried by an African swallow! FIRST SOLDIER: Oh yes! An African swallow maybe ... but not a European swallow. that's my point. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///