Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-02-05
21:24 • Closed ticket [2568434fff]: INST_CONCAT1 handles bytearray safety wrongly pl... artifact: 2ccd167a07 user: dkf
21:24 • Ticket [2568434fff]: 4 changes artifact: b3126217d6 user: dkf
14:11 • New ticket [2568434fff]. artifact: 6c2fa14a01 user: dkf

INST_CONCAT1 handles bytearray safety wrongly

Closed / Fixed2568434fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-02-05 14:11:34
% proc foo s {binary scan $s c x; list $x [scan $s$s %c%c]}
% foo \u0130
48 {48 48}

Result should be: 48 {304 304}

Problem is that INST_CONCAT1 assumes that a bytearray's string rep is generated from the bytearray, which isn't safe.
dkfplain2009-02-05 21:24:00
Fixed. Problem does not exist in 8.5 and before.
dkfplain2009-02-05 21:24:01
allow_comments - 1
Log in (anonymous is fine) to add a comment.