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 -- Br...@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 ///