diff options
author | dgp <dgp@users.sourceforge.net> | 2011-09-01 17:29:32 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-09-01 17:29:32 (GMT) |
commit | 6587a69f5cb3b51fb3caff4f9107e292dbcbefed (patch) | |
tree | 8a14a70bb10f79c8b764eac9b06de1e7af757fc7 /generic/tclStrToD.c | |
parent | 279a2a19474b5ed67d539d10053387c2bdc819f6 (diff) | |
parent | 17706bbc78ed27de8dee78c6ea4c6d3d0762157c (diff) | |
download | tcl-6587a69f5cb3b51fb3caff4f9107e292dbcbefed.zip tcl-6587a69f5cb3b51fb3caff4f9107e292dbcbefed.tar.gz tcl-6587a69f5cb3b51fb3caff4f9107e292dbcbefed.tar.bz2 |
3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).
[scan Inf %g] is portable; remove constraint.
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 a55ee83..f666e08 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -1101,7 +1101,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; |