summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-05-06 20:16:55 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-05-06 20:16:55 (GMT)
commit2bfdc581ba334338f7ae48607cd1bf269815f587 (patch)
tree987ade1a7f3143467c28077e9c6dd8a487ba8e2f /generic/tclExecute.c
parent24b0de09363c5d2c55f8f3cee608482a26d206fb (diff)
downloadtcl-2bfdc581ba334338f7ae48607cd1bf269815f587.zip
tcl-2bfdc581ba334338f7ae48607cd1bf269815f587.tar.gz
tcl-2bfdc581ba334338f7ae48607cd1bf269815f587.tar.bz2
* generic/tclCmdMZ.c: Improve overflow error message from
[string repeat]. [Bug 2582327]
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 3bf099e..c1b13b5 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.369.2.7 2009/03/20 14:35:06 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.369.2.8 2009/05/06 20:16:55 dgp Exp $
*/
#include "tclInt.h"
@@ -2121,6 +2121,7 @@ TclExecuteByteCode(
}
if (appendLen < 0) {
+ /* TODO: convert panic to error ? */
Tcl_Panic("max size for a Tcl value (%d bytes) exceeded", INT_MAX);
}
@@ -2148,6 +2149,7 @@ TclExecuteByteCode(
objResultPtr = OBJ_AT_DEPTH(opnd-1);
bytes = TclGetStringFromObj(objResultPtr, &length);
if (length + appendLen < 0) {
+ /* TODO: convert panic to error ? */
Tcl_Panic("max size for a Tcl value (%d bytes) exceeded", INT_MAX);
}
#if !TCL_COMPILE_DEBUG