Patch 8.2.4473
Problem:    Coverity warnds for not checking return value of ftell().
Solution:   Bail out if ftell() returns a negative value.
Files:      src/spellfile.c


*** ../vim-8.2.4472/src/spellfile.c     2022-02-16 19:24:03.630162410 +0000
--- src/spellfile.c     2022-02-25 21:46:45.641929492 +0000
***************
*** 6256,6261 ****
--- 6256,6263 ----
            {
                fpos = fpos_next;
                fpos_next = ftell(fd);
+               if (fpos_next < 0)
+                   break;  // should never happen
                if (STRNCMP(word, line, len) == 0
                        && (line[len] == '/' || line[len] < ' '))
                {
*** ../vim-8.2.4472/src/version.c       2022-02-25 21:35:14.436102311 +0000
--- src/version.c       2022-02-25 21:47:31.813617362 +0000
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     4473,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
106. When told to "go to your room" you inform your parents that you
     can't...because you were kicked out and banned.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20220225220429.7F9331C1149%40moolenaar.net.

Raspunde prin e-mail lui