[vim/f18] - patchlevel 675

Karsten Hopp karsten at fedoraproject.org
Thu Oct 4 21:39:49 UTC 2012


commit bfd8a19b3724af380eb520dd580216149c8a5141
Author: Karsten Hopp <karsten at redhat.com>
Date:   Fri Oct 5 00:36:30 2012 +0200

    - patchlevel 675

 7.3.675 |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/7.3.675 b/7.3.675
new file mode 100644
index 0000000..7106917
--- /dev/null
+++ b/7.3.675
@@ -0,0 +1,53 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.675
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.675
+Problem:    Using uninitialized memory with very long file name.
+Solution:   Put NUL after text when it is truncated. (ZyX)
+Files:	    src/buffer.c
+
+
+*** ../vim-7.3.674/src/buffer.c	2012-09-05 13:30:22.000000000 +0200
+--- src/buffer.c	2012-10-03 16:25:12.000000000 +0200
+***************
+*** 3058,3064 ****
+  
+      *p++ = '"';
+      if (buf_spname(curbuf) != NULL)
+! 	STRCPY(p, buf_spname(curbuf));
+      else
+      {
+  	if (!fullname && curbuf->b_fname != NULL)
+--- 3058,3064 ----
+  
+      *p++ = '"';
+      if (buf_spname(curbuf) != NULL)
+! 	vim_strncpy(p, buf_spname(curbuf), IOSIZE - (p - buffer) - 1);
+      else
+      {
+  	if (!fullname && curbuf->b_fname != NULL)
+*** ../vim-7.3.674/src/version.c	2012-10-03 14:48:03.000000000 +0200
+--- src/version.c	2012-10-03 16:29:28.000000000 +0200
+***************
+*** 721,722 ****
+--- 721,724 ----
+  {   /* Add new patch number below this line */
++ /**/
++     675,
+  /**/
+
+-- 
+It is illegal to rob a bank and then shoot at the bank teller with a water
+pistol.
+		[real standing law in Louisana, United States of America]
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


More information about the scm-commits mailing list