summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2014-01-15 19:04:52 (GMT)
committerdgp@users.sourceforge.net <dgp>2014-01-15 19:04:52 (GMT)
commit3f17306549d478915834b8ea344d8704c1438ef7 (patch)
tree62d7ad4492040b25015df31bcb66429109d0964b /unix/tclUnixCompat.c
parentb30e3618783b9a3caee3f4f881459e7342d8887d (diff)
downloadtcl-3f17306549d478915834b8ea344d8704c1438ef7.zip
tcl-3f17306549d478915834b8ea344d8704c1438ef7.tar.gz
tcl-3f17306549d478915834b8ea344d8704c1438ef7.tar.bz2
[2992970] Restore the safety of Tcl_AppendObjToObj(x, x) for bytearrays.
Also moves overflow checking to TclAppendBytesToByteArray() and adds the ability to call TABTBA() with bytes==NULL, for appending unspecified bytes. That is, the string grows, but the new bytes are of undetermined value. Like Tcl_NewByteArrayObj(NULL, length) this option is useful for manipulating buffers. The TABTBA growth algorithm is also enhanced a bit, copying over a fuller implementation from GrowStringBuffer() in tclStringObj.c
Diffstat (limited to 'unix/tclUnixCompat.c')
0 files changed, 0 insertions, 0 deletions