Karsten Hopp d178bb
To: vim_dev@googlegroups.com
Karsten Hopp d178bb
Subject: Patch 7.4.878
Karsten Hopp d178bb
Fcc: outbox
Karsten Hopp d178bb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d178bb
Mime-Version: 1.0
Karsten Hopp d178bb
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d178bb
Content-Transfer-Encoding: 8bit
Karsten Hopp d178bb
------------
Karsten Hopp d178bb
Karsten Hopp d178bb
Patch 7.4.878
Karsten Hopp d178bb
Problem:    Coverity error for clearing only one byte of struct.
Karsten Hopp d178bb
Solution:   Clear the whole struct. (Dominique Pelle)
Karsten Hopp d178bb
Files:      src/ex_docmd.c
Karsten Hopp d178bb
Karsten Hopp d178bb
Karsten Hopp d178bb
*** ../vim-7.4.877/src/ex_docmd.c	2015-09-15 14:12:01.374632607 +0200
Karsten Hopp d178bb
--- src/ex_docmd.c	2015-09-25 16:52:00.718823730 +0200
Karsten Hopp d178bb
***************
Karsten Hopp d178bb
*** 871,877 ****
Karsten Hopp d178bb
      if (flags & DOCMD_EXCRESET)
Karsten Hopp d178bb
  	save_dbg_stuff(&debug_saved);
Karsten Hopp d178bb
      else
Karsten Hopp d178bb
! 	vim_memset(&debug_saved, 0, 1);
Karsten Hopp d178bb
  
Karsten Hopp d178bb
      initial_trylevel = trylevel;
Karsten Hopp d178bb
  
Karsten Hopp d178bb
--- 871,877 ----
Karsten Hopp d178bb
      if (flags & DOCMD_EXCRESET)
Karsten Hopp d178bb
  	save_dbg_stuff(&debug_saved);
Karsten Hopp d178bb
      else
Karsten Hopp d178bb
! 	vim_memset(&debug_saved, 0, sizeof(debug_saved));
Karsten Hopp d178bb
  
Karsten Hopp d178bb
      initial_trylevel = trylevel;
Karsten Hopp d178bb
  
Karsten Hopp d178bb
*** ../vim-7.4.877/src/version.c	2015-09-25 16:37:57.231680454 +0200
Karsten Hopp d178bb
--- src/version.c	2015-09-25 16:51:54.634887652 +0200
Karsten Hopp d178bb
***************
Karsten Hopp d178bb
*** 743,744 ****
Karsten Hopp d178bb
--- 743,746 ----
Karsten Hopp d178bb
  {   /* Add new patch number below this line */
Karsten Hopp d178bb
+ /**/
Karsten Hopp d178bb
+     878,
Karsten Hopp d178bb
  /**/
Karsten Hopp d178bb
Karsten Hopp d178bb
-- 
Karsten Hopp d178bb
The goal of science is to build better mousetraps.
Karsten Hopp d178bb
The goal of nature is to build better mice.
Karsten Hopp d178bb
Karsten Hopp d178bb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d178bb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d178bb
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d178bb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///