Artifacts Associated With Ticket 965a39e3140dfbd1
Ticket change [bce025f649] (rid 136344) by anonymous on 2014-01-02 16:06:43:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "8.6.1 and 8.5.x"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "e2564b59ce1ba8531a0d02236c62639a6cc2b66f"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "crash during read from binary channel"
- type initialized to: "Bug"
Ticket change [144ad69a19] (rid 136345) by dgp on 2014-01-02 16:12:01:
- assignee changed to: "dgp"
- icomment:
Already looking at http://core.tcl.tk/tcl/tktview/272e866f1e and will take care of this at the same time.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
- subsystem changed to: "25. Channel System"
Ticket change [26b0edaae5] (rid 138016) by dgp on 2014-05-08 17:45:19:
- closedate changed to: "2456786.23981356"
- closer changed to: "dgp"
- icomment: "This should be fixed now."
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"