summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2010-04-30 20:52:51 (GMT)
committerdgp@users.sourceforge.net <dgp>2010-04-30 20:52:51 (GMT)
commitcb65a1ed1eb1f2a7221b7b2420d15944ec6bb7be (patch)
tree1e6f657a3753fec35f1cec4796c310ee5a4cc91a /generic/tclInt.h
parent8626e13a8752acd176696520b9d1dac8029533af (diff)
downloadtcl-cb65a1ed1eb1f2a7221b7b2420d15944ec6bb7be.zip
tcl-cb65a1ed1eb1f2a7221b7b2420d15944ec6bb7be.tar.gz
tcl-cb65a1ed1eb1f2a7221b7b2420d15944ec6bb7be.tar.bz2
* generic/tclBinary.c (TclAppendBytesToByteArray): Add comments
* generic/tclInt.h (TclAppendBytesToByteArray): placing overflow protection responsibility on caller. Convert "len" argument to signed int which any value already vetted for overflow issues will fit into. * generic/tclStringObj.c: Update caller; standardize panic msg. * generic/tclBinary.c (UpdateStringOfByteArray): Add panic when the generated string representation would grow beyond Tcl's size limits. [Bug 2994924]
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 9c5ec7f..5e37a56 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.474 2010/04/29 15:08:06 dkf Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.475 2010/04/30 20:52:51 dgp Exp $
*/
#ifndef _TCLINT
@@ -2802,7 +2802,7 @@ struct Tcl_LoadHandle_ {
*/
MODULE_SCOPE void TclAppendBytesToByteArray(Tcl_Obj *objPtr,
- const unsigned char *bytes, unsigned len);
+ const unsigned char *bytes, int len);
MODULE_SCOPE int TclNREvalCmd(Tcl_Interp *interp, Tcl_Obj *objPtr,
int flags);
MODULE_SCOPE void TclPushTailcallPoint(Tcl_Interp *interp);