summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-10-13 15:15:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-10-13 15:15:28 (GMT)
commitb0c0e2bc72396d792444a4928aa62bad54c048cf (patch)
tree9bea04e56593787b941689c44f2d086013f3c86e
parent6d1c7dd61a455560455388623e206dcba441ec2a (diff)
downloadtcl-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--ChangeLog5
-rwxr-xr-xgeneric/tclStrToD.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 37fca42..396cc6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;