Overview
| Artifact ID: | ffc5cd3df6c4701e264476f1d79dec2d7f07aacb |
|---|---|
| Ticket: | 3598580fffffffffffffffffffffffffffffffff
Tcl_ListObjReplace may release deleted elements too early |
| User & Date: | ferrieux on 2012-12-27 23:57:17 |
Changes
- icomment:
allow_comments - 0 Jan, two nitpicking questions ;) (1) there's an early return path (AttemptNewList); in that case the incRef'ed objv[*] are leaked. Admittedly that happens only for very large lists / lowmem conditions, but ... (2) at the point of the former late-incrRef code, there was previously a comment explaining "no memcopy because we need to iterate anyway". Since we no longer do, what about using memcopy (or memmove) ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"