diff options
author | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-09-19 16:51:13 +0400 |
---|---|---|
committer | Liubov Dmitrieva <ldmitrie@sourceware.org> | 2013-09-19 16:52:04 +0400 |
commit | d84f25c7d871dac31ed3ef136ebfb80d3ac73601 (patch) | |
tree | 2f6ed0e5bceb36e2429d0557f57c7a9cd840cc32 | |
parent | 7849ff938cf30d6a381ee864048bc0b3e8c96475 (diff) | |
download | glibc-d84f25c7d871dac31ed3ef136ebfb80d3ac73601.tar.gz glibc-d84f25c7d871dac31ed3ef136ebfb80d3ac73601.tar.xz glibc-d84f25c7d871dac31ed3ef136ebfb80d3ac73601.zip |
Fix buffer overrun in strtod_l
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | stdlib/strtod_l.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index f2cf3371a8..a7a74598b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-09-19 Liubov Dmitrieva <liubov.dmitrieva@intel.com> + + * stdlib/strtod_l.c: Fix buffer overrun. + 2013-09-19 Siddhesh Poyarekar <siddhesh@redhat.com> * benchtests/Makefile (bench): Add sincos. diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index 8f60653fb0..90541cd48f 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -1752,7 +1752,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) got_limb; } - for (i = densize; num[i] == 0 && i >= 0; --i) + for (i = densize; i >= 0 && num[i] == 0; --i) ; return round_and_return (retval, exponent - 1, negative, quot, BITS_PER_MP_LIMB - 1 - used, |