lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
c8cca7f
To: vim_dev@googlegroups.com
c8cca7f
Subject: Patch 7.4.443
c8cca7f
Fcc: outbox
c8cca7f
From: Bram Moolenaar <Bram@moolenaar.net>
c8cca7f
Mime-Version: 1.0
c8cca7f
Content-Type: text/plain; charset=UTF-8
c8cca7f
Content-Transfer-Encoding: 8bit
c8cca7f
------------
c8cca7f
c8cca7f
Patch 7.4.443
c8cca7f
Problem:    Error reported by ubsan when running test 72.
c8cca7f
Solution:   Add type cast to unsigned. (Dominique Pelle)
c8cca7f
Files:	    src/undo.c
c8cca7f
c8cca7f
c8cca7f
c8cca7f
*** ../vim-7.4.442/src/undo.c	2014-08-13 22:05:49.032892299 +0200
c8cca7f
--- src/undo.c	2014-09-11 22:19:35.936957186 +0200
c8cca7f
***************
c8cca7f
*** 1019,1025 ****
c8cca7f
  	int	n;
c8cca7f
  
c8cca7f
  	undo_read(bi, buf, (size_t)4);
c8cca7f
! 	n = (buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + buf[3];
c8cca7f
  	return n;
c8cca7f
      }
c8cca7f
  #endif
c8cca7f
--- 1019,1025 ----
c8cca7f
  	int	n;
c8cca7f
  
c8cca7f
  	undo_read(bi, buf, (size_t)4);
c8cca7f
! 	n = ((unsigned)buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + buf[3];
c8cca7f
  	return n;
c8cca7f
      }
c8cca7f
  #endif
c8cca7f
*** ../vim-7.4.442/src/version.c	2014-09-09 23:11:46.368586569 +0200
c8cca7f
--- src/version.c	2014-09-11 22:20:31.740957308 +0200
c8cca7f
***************
c8cca7f
*** 743,744 ****
c8cca7f
--- 743,746 ----
c8cca7f
  {   /* Add new patch number below this line */
c8cca7f
+ /**/
c8cca7f
+     443,
c8cca7f
  /**/
c8cca7f
c8cca7f
-- 
c8cca7f
hundred-and-one symptoms of being an internet addict:
c8cca7f
122. You ask if the Netaholics Anonymous t-shirt you ordered can be
c8cca7f
     sent to you via e-mail.
c8cca7f
c8cca7f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
c8cca7f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
c8cca7f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
c8cca7f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///