From: Rich Felker Date: Mon, 30 Apr 2012 06:56:47 +0000 (-0400) Subject: fix off-by-one error that caused uninitialized memory read in floatscan X-Git-Tag: v0.9.0~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28c5d46d844684feba2ddfc9027ea308d8d3612c;p=oweals%2Fmusl.git fix off-by-one error that caused uninitialized memory read in floatscan this caused misreading of certain floating point values that are exact multiples of large powers of ten, unpredictable depending on prior stack contents. --- diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c index f80db383..4b335f5c 100644 --- a/src/internal/floatscan.c +++ b/src/internal/floatscan.c @@ -244,7 +244,7 @@ static long double decfloat(FILE *f, int c, int bits, int emin, int sign, int po /* Assemble desired bits into floating point variable */ for (y=i=0; i