diff options
author | dgp <dgp@users.sourceforge.net> | 2005-10-13 15:15:28 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-10-13 15:15:28 (GMT) |
commit | b0c0e2bc72396d792444a4928aa62bad54c048cf (patch) | |
tree | 9bea04e56593787b941689c44f2d086013f3c86e | |
parent | 6d1c7dd61a455560455388623e206dcba441ec2a (diff) | |
download | tcl-b0c0e2bc72396d792444a4928aa62bad54c048cf.zip tcl-b0c0e2bc72396d792444a4928aa62bad54c048cf.tar.gz tcl-b0c0e2bc72396d792444a4928aa62bad54c048cf.tar.bz2 |
* generic/tclStrToD.c (TclParseNumber): Missing goto caused crash
when parsing "Na". [Bug 1325833]
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | generic/tclStrToD.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-10-13 Don Porter <dgp@users.sourceforge.net> + + * generic/tclStrToD.c (TclParseNumber): Missing goto caused crash + when parsing "Na". [Bug 1325833] + 2005-10-12 Don Porter <dgp@users.sourceforge.net> * generic/tclExecute.c (GetNumberFromObj): Restored some lost diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index f733a7c..e4d7e18 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStrToD.c,v 1.10 2005/10/09 20:05:24 msofer Exp $ + * RCS: @(#) $Id: tclStrToD.c,v 1.11 2005/10/13 15:15:28 dgp Exp $ * *---------------------------------------------------------------------- */ @@ -814,6 +814,7 @@ TclParseNumber( Tcl_Interp* interp, state = sNAN; break; } + goto endgame; case sNAN: acceptState = state; acceptPoint = p; |