|
Karsten Hopp |
588638 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
588638 |
Subject: Patch 7.1.174
|
|
Karsten Hopp |
588638 |
Fcc: outbox
|
|
Karsten Hopp |
588638 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
588638 |
Mime-Version: 1.0
|
|
Karsten Hopp |
588638 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
588638 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
588638 |
------------
|
|
Karsten Hopp |
588638 |
|
|
Karsten Hopp |
588638 |
Patch 7.1.174
|
|
Karsten Hopp |
588638 |
Problem: Writing NUL past end of a buffer.
|
|
Karsten Hopp |
588638 |
Solution: Copy one byte less when using strncat(). (Dominuque Pelle)
|
|
Karsten Hopp |
588638 |
Files: src/ex_cmds.c, src/ex_docmd.c
|
|
Karsten Hopp |
588638 |
|
|
Karsten Hopp |
588638 |
|
|
Karsten Hopp |
588638 |
*** ../vim-7.1.173/src/ex_cmds.c Sat Dec 8 22:20:24 2007
|
|
Karsten Hopp |
588638 |
--- src/ex_cmds.c Fri Dec 7 22:13:32 2007
|
|
Karsten Hopp |
588638 |
***************
|
|
Karsten Hopp |
588638 |
*** 1650,1656 ****
|
|
Karsten Hopp |
588638 |
{
|
|
Karsten Hopp |
588638 |
vim_snprintf((char *)IObuff, IOSIZE, _("%sviminfo: %s in line: "),
|
|
Karsten Hopp |
588638 |
errnum, message);
|
|
Karsten Hopp |
588638 |
! STRNCAT(IObuff, line, IOSIZE - STRLEN(IObuff));
|
|
Karsten Hopp |
588638 |
if (IObuff[STRLEN(IObuff) - 1] == '\n')
|
|
Karsten Hopp |
588638 |
IObuff[STRLEN(IObuff) - 1] = NUL;
|
|
Karsten Hopp |
588638 |
emsg(IObuff);
|
|
Karsten Hopp |
588638 |
--- 1650,1656 ----
|
|
Karsten Hopp |
588638 |
{
|
|
Karsten Hopp |
588638 |
vim_snprintf((char *)IObuff, IOSIZE, _("%sviminfo: %s in line: "),
|
|
Karsten Hopp |
588638 |
errnum, message);
|
|
Karsten Hopp |
588638 |
! STRNCAT(IObuff, line, IOSIZE - STRLEN(IObuff) - 1);
|
|
Karsten Hopp |
588638 |
if (IObuff[STRLEN(IObuff) - 1] == '\n')
|
|
Karsten Hopp |
588638 |
IObuff[STRLEN(IObuff) - 1] = NUL;
|
|
Karsten Hopp |
588638 |
emsg(IObuff);
|
|
Karsten Hopp |
588638 |
*** ../vim-7.1.173/src/ex_docmd.c Sat Nov 24 21:49:19 2007
|
|
Karsten Hopp |
588638 |
--- src/ex_docmd.c Fri Dec 7 21:01:03 2007
|
|
Karsten Hopp |
588638 |
***************
|
|
Karsten Hopp |
588638 |
*** 2660,2666 ****
|
|
Karsten Hopp |
588638 |
errormsg = IObuff;
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
STRCAT(errormsg, ": ");
|
|
Karsten Hopp |
588638 |
! STRNCAT(errormsg, *cmdlinep, IOSIZE - STRLEN(IObuff));
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
emsg(errormsg);
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
--- 2660,2666 ----
|
|
Karsten Hopp |
588638 |
errormsg = IObuff;
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
STRCAT(errormsg, ": ");
|
|
Karsten Hopp |
588638 |
! STRNCAT(errormsg, *cmdlinep, IOSIZE - STRLEN(IObuff) - 1);
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
emsg(errormsg);
|
|
Karsten Hopp |
588638 |
}
|
|
Karsten Hopp |
588638 |
*** ../vim-7.1.173/src/version.c Sun Dec 9 19:25:35 2007
|
|
Karsten Hopp |
588638 |
--- src/version.c Sun Dec 9 19:36:50 2007
|
|
Karsten Hopp |
588638 |
***************
|
|
Karsten Hopp |
588638 |
*** 668,669 ****
|
|
Karsten Hopp |
588638 |
--- 668,671 ----
|
|
Karsten Hopp |
588638 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
588638 |
+ /**/
|
|
Karsten Hopp |
588638 |
+ 174,
|
|
Karsten Hopp |
588638 |
/**/
|
|
Karsten Hopp |
588638 |
|
|
Karsten Hopp |
588638 |
--
|
|
Karsten Hopp |
588638 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
588638 |
214. Your MCI "Circle of Friends" are all Hayes-compatible.
|
|
Karsten Hopp |
588638 |
|
|
Karsten Hopp |
588638 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
588638 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
588638 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
588638 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|