|
Karsten Hopp |
a419ac |
To: vim-dev@vim.org
|
|
Karsten Hopp |
a419ac |
Subject: patch 7.1.053
|
|
Karsten Hopp |
a419ac |
Fcc: outbox
|
|
Karsten Hopp |
a419ac |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a419ac |
Mime-Version: 1.0
|
|
Karsten Hopp |
a419ac |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
a419ac |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a419ac |
------------
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
Patch 7.1.053
|
|
Karsten Hopp |
a419ac |
Problem: Accessing uninitialized memory when giving a message.
|
|
Karsten Hopp |
a419ac |
Solution: Check going the length before checking for a NUL byte.
|
|
Karsten Hopp |
a419ac |
Files: src/message.c
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
*** ../vim-7.1.052/src/message.c Thu Jul 5 10:10:29 2007
|
|
Karsten Hopp |
a419ac |
--- src/message.c Sat Aug 4 23:13:58 2007
|
|
Karsten Hopp |
a419ac |
***************
|
|
Karsten Hopp |
a419ac |
*** 1842,1848 ****
|
|
Karsten Hopp |
a419ac |
int wrap;
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
did_wait_return = FALSE;
|
|
Karsten Hopp |
a419ac |
! while (*s != NUL && (maxlen < 0 || (int)(s - str) < maxlen))
|
|
Karsten Hopp |
a419ac |
{
|
|
Karsten Hopp |
a419ac |
/*
|
|
Karsten Hopp |
a419ac |
* We are at the end of the screen line when:
|
|
Karsten Hopp |
a419ac |
--- 1842,1848 ----
|
|
Karsten Hopp |
a419ac |
int wrap;
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
did_wait_return = FALSE;
|
|
Karsten Hopp |
a419ac |
! while ((maxlen < 0 || (int)(s - str) < maxlen) && *s != NUL)
|
|
Karsten Hopp |
a419ac |
{
|
|
Karsten Hopp |
a419ac |
/*
|
|
Karsten Hopp |
a419ac |
* We are at the end of the screen line when:
|
|
Karsten Hopp |
a419ac |
*** ../vim-7.1.052/src/version.c Sun Aug 5 18:49:07 2007
|
|
Karsten Hopp |
a419ac |
--- src/version.c Sun Aug 5 19:18:46 2007
|
|
Karsten Hopp |
a419ac |
***************
|
|
Karsten Hopp |
a419ac |
*** 668,669 ****
|
|
Karsten Hopp |
a419ac |
--- 668,671 ----
|
|
Karsten Hopp |
a419ac |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a419ac |
+ /**/
|
|
Karsten Hopp |
a419ac |
+ 53,
|
|
Karsten Hopp |
a419ac |
/**/
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
--
|
|
Karsten Hopp |
a419ac |
From "know your smileys":
|
|
Karsten Hopp |
a419ac |
<>:-) Bishop
|
|
Karsten Hopp |
a419ac |
|
|
Karsten Hopp |
a419ac |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a419ac |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a419ac |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
a419ac |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|