aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-08-27 15:59:24 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-08-27 15:59:24 +0000
commitd6e70f4368533224e66d10b7f2126b899a3fd5e4 (patch)
treef4dbf0ac00306d6466cc7a965ce69286d36c7999 /ChangeLog
parent1f529f7d8456f09109a8e942581f89f10a901ed0 (diff)
downloadglibc-d6e70f4368533224e66d10b7f2126b899a3fd5e4.tar
glibc-d6e70f4368533224e66d10b7f2126b899a3fd5e4.tar.gz
glibc-d6e70f4368533224e66d10b7f2126b899a3fd5e4.tar.bz2
glibc-d6e70f4368533224e66d10b7f2126b899a3fd5e4.zip
Fix strtod integer/buffer overflow (bug 14459).
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b2f9620c2b..26719e485a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2012-08-27 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #14459]
+ * stdlib/strtod_l.c: Include <stdint.h>.
+ (NDEBUG): Do not define.
+ (round_and_return): Change EXPONENT parameter to type intmax_t.
+ Rearrange calculations to avoid internal overflow possibilities.
+ (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
+ Rearrange calculations to avoid internal overflow possibilities.
+ Assert that number fits inside MPNSIZE limbs.
+ (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
+ Change DIG_NO, INT_NO and LEAD_ZERO to type size_t. Rearrange
+ calculations and add assertions to avoid internal overflow
+ possibilities. Add casts to avoid signed/unsigned operations.
+ * stdlib/tst-strtod-overflow.c: New file.
+ * stdlib/Makefile (tests): Add tst-strtod-overflow.
+
2012-08-25 Marek Polacek <polacek@redhat.com>
* time/time.h: Fix some typos in comments.