Sync with libc.
[pspp] / lib / ChangeLog
index 5d07911fa27cab3dfcef7a8f5bc99b8ddb0d06e4..b0d2e540d4b66c7b2623edf7d216d9065e4e206f 100644 (file)
@@ -1,3 +1,13 @@
+2005-03-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * iconvme.c (SIZE_MAX): New macro, if not already defined.
+       (iconv_string): Don't guess a size-zero buffer, as that might cause
+       buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
+       result would be 'too large', where 'too large' is (heuristically)
+       the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
+       overflow concerns.  This will prevent some unwanted malloc failures
+       when the inputs are very large.
+
 2005-03-15  Bruno Haible  <bruno@clisp.org>
 
        * regex.c (byte_re_match_2_internal): Rename local variable 'not' to