diff options
author | dgp <dgp@noemail.net> | 2011-09-01 17:29:32 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-09-01 17:29:32 (GMT) |
commit | 896a36435b3129a058519253d015367e2735ede2 (patch) | |
tree | 8a14a70bb10f79c8b764eac9b06de1e7af757fc7 /generic/tclStrToD.c | |
parent | f4e88c21e0512e4f34ded31c3de5750445752fe4 (diff) | |
parent | d6be3f474c13014c4bcee43da3bc596caab0f06f (diff) | |
download | tcl-896a36435b3129a058519253d015367e2735ede2.zip tcl-896a36435b3129a058519253d015367e2735ede2.tar.gz tcl-896a36435b3129a058519253d015367e2735ede2.tar.bz2 |
3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).
[scan Inf %g] is portable; remove constraint.
FossilOrigin-Name: 79b3c9d044215bb4c7107950575573fd6c770fab
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; |