From 633a26c1e69b6a977d16086834f2b937e0378002 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 10 Apr 2012 23:05:16 -0400 Subject: fix potential overflow in exponent reading note that there's no need for a precise cutoff, because exponents this large will always result in overflow or underflow (it's impossible to read enough digits to compensate for the exponent magnitude; even at a few nanoseconds per digit it would take hundreds of years). --- src/internal/floatscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c index 3875719b..ed735278 100644 --- a/src/internal/floatscan.c +++ b/src/internal/floatscan.c @@ -44,7 +44,7 @@ static long long scanexp(FILE *f, int pok) } for (x=0; c-'0'<10U && x