From: Liubov Dmitrieva Date: Thu, 19 Sep 2013 12:51:13 +0000 (+0400) Subject: Fix buffer overrun in strtod_l X-Git-Tag: glibc-2.19~775 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d84f25c7d871dac31ed3ef136ebfb80d3ac73601;p=platform%2Fupstream%2Fglibc.git Fix buffer overrun in strtod_l --- diff --git a/ChangeLog b/ChangeLog index f2cf337..a7a7459 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-09-19 Liubov Dmitrieva + + * stdlib/strtod_l.c: Fix buffer overrun. + 2013-09-19 Siddhesh Poyarekar * benchtests/Makefile (bench): Add sincos. diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index 8f60653..90541cd 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,