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.