Overview
| Artifact ID: | 23668ab93cece6fa793a9a0c0a867080310efb25 |
|---|---|
| Ticket: | 3484402fffffffffffffffffffffffffffffffff
off-by-one address error in AppendUnicodeToUnicodeRep |
| User & Date: | sebres on 2012-02-09 00:17:38 |
Changes
- icomment:
To Don, IMO, it's intrinsically illegal, what you do here: p = Tcl_GetString(objPtr); Tcl_SetObjLength(objPtr, 3); Tcl_AppendToObj(objPtr, p+7, 8); cause TODAY the Tcl_SetObjLength leave the pointer to string yet conserved (It changes just the length). But, If TOMORROW it will be optimized, and frees or recreate new string representation also, that code will produce access violation. IMO, it is not practical.
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"