Tcl Source Code

View Ticket
Login
Ticket UUID: 2994924
Title: UpdateStringOfByteArray lacks overflow protection
Type: Bug Created on: 2010-04-30 19:33:37
Submitter: dgp Assigned to: dgp
Subsystem: 12. ByteArray Object Severity:
Priority: 5 Medium Last modified: 2010-05-01 03:57:45
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2010-04-30 20:57:45
Version: obsolete: 8.6b1.1
Description:
% set s [binary format a[expr 0x7ffffffe] \u0001]; concat
% set t [binary format a2 \u0001]

% append s $t; concat
UpdateStringProc for type 'bytearray' failed to create a valid string rep
User Comments:
dgp added on 2010-05-01 03:14:08:
 oops

[binary format a] does not do what I thought it did.

dgp added on 2010-05-01 03:46:08:
so I didn't get the bug I went looking for, but
another one instead.

dgp added on 2010-05-01 03:57:45:

allow_comments - 1

fixed on HEAD and 8.5