* lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
[gnulib.git] / ChangeLog
index 7b35b21..dc7195b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
+2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
+       checking code.  Set N = ceil (1.5 * N) rather than to a slightly
+       larger value.
+
 2007-02-03  Jim Meyering  <jim@meyering.net>
 
+        Give tools a better chance to allocate space for very large buffers.
+       * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
+
        Make pwd and readlink work also when run with an unreadable parent dir
        on systems with openat support.
        * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system