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