Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_Panic in [format]

Closed / Fixed2830354fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-31 14:44:28
tcl 8.6b1.1 (CVS Head) built with --enable-symbols

% format "%340f" 0
alloc: invalid block: 475c8: ef ef 20
Abort (core dumped)

Happens also on Windows. 
% format "%340f" 0

unable to realloc 341 bytes
dkf Ticket [2830354fff]: 3 changes [History diff]2009-07-31 22:12:12
dkf Ticket [2830354fff]: 1 change [History diff]2009-07-31 22:13:39
dgpplain2009-07-31 22:43:29
confirmed in 8.5+
dgpplain2009-07-31 23:43:01
this is a buffer overflow
because AppendFormatToObj
failed to grow the buffer to account
for large width requests.
dgpplain2009-07-31 23:56:59
allow_comments - 1


fixed for 8.5.8+
Log in (anonymous is fine) to add a comment.