Tcl Source Code

View Ticket
Login
Ticket UUID: 2568434
Title: INST_CONCAT1 handles bytearray safety wrongly
Type: Bug Created on: 2009-02-05 14:11:34
Submitter: dkf Assigned to: dkf
Subsystem: 47. Bytecode Compiler Severity:
Priority: 5 Medium Last modified: 2009-02-05 21:24:01
Status: Closed Closed by: dkf
Resolution: Fixed Closed on: 2009-02-05 14:24:01
Version: obsolete: 8.6b1.1
Description:
% 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.
User Comments:
dkf added on 2009-02-05 21:24:00:
Fixed. Problem does not exist in 8.5 and before.

dkf added on 2009-02-05 21:24:01:

allow_comments - 1