Skip to content
Tcl Source Code Check-in [c6c7d2f492]
Login

Check-in [c6c7d2f492]

Overview
Comment:The DupEncodingIntRep() routine is broken. It fails to set the typePtr field of the duplicated Tcl_Obj to indicate that the intrep is that of the &encodingType. The impact must be that refcounting of Tcl_Encodings are out of balance, at least in the (unusual?) case where "encoding" values need duplication. I hesitate to actually commit this fix until I have a test demonstrating the need for it, and a chance to see the impact on actual encoding operations. The lifetime management of encodings has a history of being tricky and raising controversy. More work required.
Timelines: family | ancestors | descendants | both | dgp-dup-encoding-fix
Files: files | file ages | folders
SHA1: c6c7d2f4927530476b0a550afdcf7b5114497e3e
User & Date: dgp on 2016-03-28 21:24:22.576
Other Links: branch diff | manifest | tags
Context
2016-05-10
16:03
merge trunk closed check-in: 57cc57e749 user: dgp tags: dgp-dup-encoding-fix
2016-03-28
21:24
The DupEncodingIntRep() routine is broken. It fails to set the typePtr field of the duplicated Tcl_... check-in: c6c7d2f492 user: dgp tags: dgp-dup-encoding-fix
2016-03-27
21:28
Better fix for [7d0db7c388f52de81]: In stead of adding dependencies to multiple Makefile lines, comb... check-in: fb6e45132e user: jan.nijtmans tags: trunk
Changes