| Ticket UUID: | 3091701 | ||
| Title: | TclAppendBytesToByteArray infinite loop | ||
| Type: | Bug | Created on: | 2010-10-21 02:45:41 |
| Submitter: | andygoth | Assigned to: | dkf |
| Subsystem: | 12. ByteArray Object | Severity: | |
| Priority: | 9 Immediate | Last modified: | 2010-10-24 14:19:54 |
| Status: | Deleted | Closed by: | dkf |
| Resolution: | Duplicate | Closed on: | 2010-10-24 07:19:54 |
| Version: | obsolete: 8.6b1.1 | ||
| Description: | ||||
attempt = byteArrayPtr->allocated;
do {
attempt *= 2;
} while (attempt < used+len);
This code in TclAppendBytesToByteArray loops forever when byteArrayPtr->allocated is initially zero. This explains the lock-up dzach reported on http://wiki.tcl.tk/23626 . I have reproduced the problem and used gdb to track it down to these few lines. The procedure is as dzach said on the Wiki (POST from MSIE8), and his "set chunk {}" workaround also works for me.
| ||||
| User Comments: | ||||
dkf added on 2010-10-24 14:19:54:
allow_comments - 1 dupe of 3067036 | ||||
