From: Rich Felker Date: Wed, 11 Apr 2012 03:05:16 +0000 (-0400) Subject: fix potential overflow in exponent reading X-Git-Tag: v0.8.8~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=633a26c1e69b6a977d16086834f2b937e0378002;p=oweals%2Fmusl.git 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). --- 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