|
Karsten Hopp |
44f92d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
44f92d |
Subject: Patch 7.3.159
|
|
Karsten Hopp |
44f92d |
Fcc: outbox
|
|
Karsten Hopp |
44f92d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
44f92d |
Mime-Version: 1.0
|
|
Karsten Hopp |
44f92d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
44f92d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
44f92d |
------------
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
Patch 7.3.159
|
|
Karsten Hopp |
44f92d |
Problem: Using uninitialized pointer when out of memory.
|
|
Karsten Hopp |
44f92d |
Solution: Check for NULL return value.
|
|
Karsten Hopp |
44f92d |
Files: src/mbyte.c
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
*** ../vim-7.3.158/src/mbyte.c 2010-10-27 13:37:39.000000000 +0200
|
|
Karsten Hopp |
44f92d |
--- src/mbyte.c 2011-04-11 14:17:39.000000000 +0200
|
|
Karsten Hopp |
44f92d |
***************
|
|
Karsten Hopp |
44f92d |
*** 4129,4135 ****
|
|
Karsten Hopp |
44f92d |
done = to - (char *)result;
|
|
Karsten Hopp |
44f92d |
}
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
! if (resultlenp != NULL)
|
|
Karsten Hopp |
44f92d |
*resultlenp = (int)(to - (char *)result);
|
|
Karsten Hopp |
44f92d |
return result;
|
|
Karsten Hopp |
44f92d |
}
|
|
Karsten Hopp |
44f92d |
--- 4129,4135 ----
|
|
Karsten Hopp |
44f92d |
done = to - (char *)result;
|
|
Karsten Hopp |
44f92d |
}
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
! if (resultlenp != NULL && result != NULL)
|
|
Karsten Hopp |
44f92d |
*resultlenp = (int)(to - (char *)result);
|
|
Karsten Hopp |
44f92d |
return result;
|
|
Karsten Hopp |
44f92d |
}
|
|
Karsten Hopp |
44f92d |
*** ../vim-7.3.158/src/version.c 2011-04-11 14:27:34.000000000 +0200
|
|
Karsten Hopp |
44f92d |
--- src/version.c 2011-04-11 14:28:08.000000000 +0200
|
|
Karsten Hopp |
44f92d |
***************
|
|
Karsten Hopp |
44f92d |
*** 716,717 ****
|
|
Karsten Hopp |
44f92d |
--- 716,719 ----
|
|
Karsten Hopp |
44f92d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
44f92d |
+ /**/
|
|
Karsten Hopp |
44f92d |
+ 159,
|
|
Karsten Hopp |
44f92d |
/**/
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
--
|
|
Karsten Hopp |
44f92d |
I learned the customs and mannerisms of engineers by observing them, much the
|
|
Karsten Hopp |
44f92d |
way Jane Goodall learned about the great apes, but without the hassle of
|
|
Karsten Hopp |
44f92d |
grooming.
|
|
Karsten Hopp |
44f92d |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
44f92d |
|
|
Karsten Hopp |
44f92d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
44f92d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
44f92d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
44f92d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|