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 -- [email protected] -- 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    ///

-- 
-- 
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/202007011116.061BGD7e1126991%40masaka.moolenaar.net.

Raspunde prin e-mail lui