diff options
author | dgp <dgp@users.sourceforge.net> | 2009-05-06 20:16:55 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-05-06 20:16:55 (GMT) |
commit | ba71ea0fd0a662b4a25102ccd493f41ac83a78e8 (patch) | |
tree | 987ade1a7f3143467c28077e9c6dd8a487ba8e2f /generic/tclExecute.c | |
parent | beafaf34bb06c64acf0e23b23cba3c1cdd1c6fca (diff) | |
download | tcl-ba71ea0fd0a662b4a25102ccd493f41ac83a78e8.zip tcl-ba71ea0fd0a662b4a25102ccd493f41ac83a78e8.tar.gz tcl-ba71ea0fd0a662b4a25102ccd493f41ac83a78e8.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.c | 4 |
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 |