Overview
| Comment: | [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 |
|---|---|
| Timelines: | family | ancestors | descendants | both | bug-2992970 |
| Files: | files | file ages | folders |
| SHA1: |
e5267e9dcde86fede4965ae8593f825e |
| User & Date: | dgp on 2014-01-15 19:04:52.392 |
| Other Links: | branch diff | manifest | tags |
Context
|
2014-01-21
| ||
| 17:25 | [2992970] Restore safety of Tcl_AppendObjToObj(x, x) for bytearrays. check-in: 704897a19b user: dgp tags: trunk | |
|
2014-01-15
| ||
| 20:21 | [272e866f1e][965a39e314] Revise ReadBytes so that it uses the bytearray growth algorithm already in ... check-in: 128d902c33 user: dgp tags: bug-272e866f1e | |
| 19:04 | [2992970] Restore the safety of Tcl_AppendObjToObj(x, x) for bytearrays. Also moves overflow checkin... closed check-in: e5267e9dcd user: dgp tags: bug-2992970 | |
|
2014-01-08
| ||
| 11:04 | Make DEFAULT_TRIM_SET a MODULE_SCOPE string constant, so its value can be shared in tclCmdMZ.o and T... check-in: 2191bd8485 user: jan.nijtmans tags: trunk | |
Changes
Modified generic/tclBinary.c
from [7610825e34]
to [fee105a45a].
[diff]
Modified generic/tclStringObj.c
from [1a76d8cd09]
to [afb330ee7c].
[diff]