diff options
author | dgp <dgp@noemail.net> | 2011-09-01 17:13:59 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-09-01 17:13:59 (GMT) |
commit | d6be3f474c13014c4bcee43da3bc596caab0f06f (patch) | |
tree | 958809c8acbbd29e5562804b7f60bf29c9d3e7b3 /generic/tclStrToD.c | |
parent | a82cb3919da60ef4396aabd71210dd11251a8cbb (diff) | |
download | tcl-d6be3f474c13014c4bcee43da3bc596caab0f06f.zip tcl-d6be3f474c13014c4bcee43da3bc596caab0f06f.tar.gz tcl-d6be3f474c13014c4bcee43da3bc596caab0f06f.tar.bz2 |
3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)
[scan Inf %g] is portable; remove constraint.
FossilOrigin-Name: 37d01df720a80f7a9c36a1b71161dd80318099a3
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-x | generic/tclStrToD.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index aa78c51..c942023 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -1060,7 +1060,10 @@ TclParseNumber( d = 10 + c - 'a'; } else if (c >= 'A' && c <= 'F') { d = 10 + c - 'A'; + } else { + goto endgame; } + numSigDigs++; significandWide = (significandWide << 4) + d; state = sNANHEX; break; |