diff options
author | dgp <dgp@users.sourceforge.net> | 2011-09-01 17:13:59 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-09-01 17:13:59 (GMT) |
commit | c639e72c38ffbe038a79a58991d4c5bb3e027a6f (patch) | |
tree | 958809c8acbbd29e5562804b7f60bf29c9d3e7b3 /generic | |
parent | 2cd90e85bdaacea5b5fcf05011e14b92d78b5b12 (diff) | |
download | tcl-c639e72c38ffbe038a79a58991d4c5bb3e027a6f.zip tcl-c639e72c38ffbe038a79a58991d4c5bb3e027a6f.tar.gz tcl-c639e72c38ffbe038a79a58991d4c5bb3e027a6f.tar.bz2 |
3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)
[scan Inf %g] is portable; remove constraint.
Diffstat (limited to 'generic')
-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; |