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