From 90cb32ab6fc7f40d9c16aada2cfc34d9beb0b3e8 Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Wed, 18 Sep 2013 15:02:30 +0400 Subject: [PATCH] Buffer overrun detected by Intel MPX in stdlib/strtod_l.c --- stdlib/strtod_l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index 8f60653fb0a..90541cd48fa 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, -- 2.47.2