wcswidth, mbswidth: Avoid integer overflow.
[pspp] / ChangeLog
index 66c95a9a850294c2afa163718f635969c705944a..a3ddcef23173141787c08132012fe63b9e86c42c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-03-12  Bruno Haible  <bruno@clisp.org>
+
+       wcswidth, mbswidth: Avoid integer overflow.
+       * lib/wcswidth.c: Include <limits.h>.
+       * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
+       * lib/mbswidth.c: Include <limits.h>.
+       (mbsnwidth): Avoid 'int' overflow.
+       Reported by Jim Meyering.
+
 2011-03-12  Bruno Haible  <bruno@clisp.org>
 
        futimens, utimensat: Avoid endless recursion on Solaris 10.