To: vim_dev@googlegroups.com Subject: Patch 8.2.2462 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2462 Problem: Coverity warns for not checking for fseek() error. Solution: Give an error message if fseek() fails. Files: src/spellfile.c *** ../vim-8.2.2461/src/spellfile.c 2020-09-02 12:58:44.535773436 +0200 --- src/spellfile.c 2021-02-03 20:12:49.743807179 +0100 *************** *** 6277,6283 **** len, word, NameBuff); } } ! fseek(fd, fpos_next, SEEK_SET); } } if (fd != NULL) --- 6277,6287 ---- len, word, NameBuff); } } ! if (fseek(fd, fpos_next, SEEK_SET) != 0) ! { ! PERROR(_("Seek error in spellfile")); ! break; ! } } } if (fd != NULL) *** ../vim-8.2.2461/src/version.c 2021-02-03 20:01:16.777542349 +0100 --- src/version.c 2021-02-03 20:13:36.019677102 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2462, /**/ -- FATHER: One day, lad, all this will be yours ... PRINCE: What - the curtains? "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 ///