diff options
| author | dgp <dgp@users.sourceforge.net> | 2014-01-15 19:04:52 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2014-01-15 19:04:52 (GMT) |
| commit | a994cc42f5a2c2758e6f3da6fdba0a390f7d1538 (patch) | |
| tree | 62d7ad4492040b25015df31bcb66429109d0964b /unix/tclUnixInit.c | |
| parent | 48459b2357f3a18ad09428bfaaf5de5ef3d50292 (diff) | |
| download | tcl-a994cc42f5a2c2758e6f3da6fdba0a390f7d1538.zip tcl-a994cc42f5a2c2758e6f3da6fdba0a390f7d1538.tar.gz tcl-a994cc42f5a2c2758e6f3da6fdba0a390f7d1538.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/tclUnixInit.c')
0 files changed, 0 insertions, 0 deletions
