Overview
| Artifact ID: | bce025f6494ac205891bf1556dbe973768dbe4b6 |
|---|---|
| Ticket: | 965a39e3140dfbd1b1c443990fe47842e9d20ec5
crash during read from binary channel |
| User & Date: | anonymous on 2014-01-02 16:06:43 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Hi All, from time to time I am facing a crash during read in tcl. I think the problem is in tclIO.c (see patch below). The new calculated length will be to small by 1 in case offset == toRead. The problem can be easily fixed by changing the if statement as shown below. BR René --- ./generic/tclIO.c.orig 2014-01-02 16:40:20.399912000 +0100 +++ ./generic/tclIO.c 2014-01-02 16:40:53.290141000 +0100 @@ -5595,7 +5595,7 @@ */ length = offset * 2; - if (offset < toRead) { + if (offset <= toRead) { length = offset + toRead + 1; } dst = (char *) Tcl_SetByteArrayLength(objPtr, length); - foundin changed to: "8.6.1 and 8.5.x"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "e2564b59ce1ba8531a0d02236c62639a6cc2b66f"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "crash during read from binary channel"
- type changed to: "Bug"