Skip to content
Tcl Source Code History Of Ticket 965a39e314
Login

History Of Ticket 965a39e314

Artifacts Associated With Ticket 965a39e314

  1. Ticket change [bce025f649] (rid 136344) by anonymous on 2014-01-02 16:06:43:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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);
      
    5. foundin initialized to: "8.6.1 and 8.5.x"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e2564b59ce1ba8531a0d02236c62639a6cc2b66f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "18. Commands M-Z"
    15. title initialized to: "crash during read from binary channel"
    16. type initialized to: "Bug"
  2. Ticket change [144ad69a19] (rid 136345) by dgp on 2014-01-02 16:12:01:

    1. assignee changed to: "dgp"
    2. icomment:
      Already looking at
      
      http://core.tcl.tk/tcl/tktview/272e866f1e
      
      and will take care of this at the same time.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. subsystem changed to: "25. Channel System"
  3. Ticket change [26b0edaae5] (rid 138016) by dgp on 2014-05-08 17:45:19:

    1. closedate changed to: "2456786.23981356"
    2. closer changed to: "dgp"
    3. icomment: "This should be fixed now."
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"