Loading ...
Sorry, an error occurred while loading the content.
 

[patch] fixed 3 bugs found with "smatch" static analyzer

Expand Messages
  • Dominique PellĂ©
    Hi I tried the static analyzer smatch (http://smatch.sourceforge.net/) with Vim-7.3.3. It gives quite some noise but the following 3 defects look like real
    Message 1 of 1 , Aug 23, 2010
      Hi

      I tried the static analyzer "smatch" (http://smatch.sourceforge.net/) with
      Vim-7.3.3. It gives quite some noise but the following 3 defects look like
      real bugs:

      spell.c +7238 spell_read_wordfile(118) error: strcpy() '(line)' too
      large for '(spin->si_region_name)' (17 vs 16)
      spell.c +9548 init_spellfile(45) warn: add some parenthesis here?
      syntax.c +7611 do_highlight(823) error: buffer overflow 'buf' 100 <= 100

      Fixed in attached patch.

      -- Dominique

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.