Overview
| Artifact ID: | 7eb2db1e2c6125c72a18eec50d260756d395e953 |
|---|---|
| Ticket: | 2603158fffffffffffffffffffffffffffffffff
Tcl_AppendObjToObj cannot append obj to self |
| User & Date: | dkf on 2009-02-16 03:27:16 |
Changes
- icomment:
I'd not expect the T_GSFO->T_ATO or T_GUFO->T_AUTO versions to work. There simply isn't quite enough information passed to Tcl's internals to be able to spot the sharing (if you think there is, consider the case where you're appending everything but the first character so a pointer equality test won't spot the issue...) However, T_AOTO should be able to cope: that's got precisely the right info to know when it has to be careful. (Or we can assume that expanding the buffers won't necessarily preserve the pointers to any character/unicode array, but will preserve the lengths, which is what I did. And that's why it won't work for the other cases.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"