Skip to content
Tcl Source Code History Of Ticket 220996
Login

History Of Ticket 220996

Artifacts Associated With Ticket 220996

  1. Ticket change [b807bc6f0b] (rid 128906) by nobody on 2000-11-01 14:51:16:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      'string index' has a bug.  If you give an index value that's larger than
      the length of the string, or less than 0, it doesn't do bounds checking.
      
      If you look around line 1210 of tclCmdMZ.c in tcl 8.3.2, you'll see a
      reference to string[index] but there was no check to verify that 'index'
      is within the string array bound. 
      
      I suggest that this:
       Tcl_SetByteArrayObj(resultPtr,
                              (unsigned char *)(&string1[index]), 1)
      
      be replaced with this:
      
       if ((index >= 0) && (index < length1)) {
                          Tcl_SetByteArrayObj(resultPtr,
                                  (unsigned char *)(&string1[index]), 1);
                      }
      
    4. foundin initialized to: ""
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: ""
    10. title initialized to: "'string index' doesn't do bounds checking"
    11. type initialized to: "Bug"
  2. Ticket change [0430c138f3] (rid 119954) by ericm on 2000-11-02 03:50:33:

    1. icomment:
      This bug has already been fixed for 8.4a2.
      
         Eric Melski                            The Other Tcl Guy
         ericm at ajubasolutions.com            Ajuba Solutions
      
      
      
    2. login: "ericm"
    3. mimetype: "text/plain"
    4. username: "ericm"
  3. Ticket change [3afa815b15] (rid 112652) by ericm on 2000-11-02 04:35:32:

    1. closedate changed to: "2000-11-01T21:35:32"
    2. closer changed to: "ericm"
    3. status changed to: "Closed"
  4. Ticket change [b1b857a75e] (rid 98200) by ericm on 2000-11-02 04:40:25:

    1. closedate changed to: "2000-11-01T21:40:25"
    2. closer changed to: "ericm"
    3. foundin changed to: "obsolete: 8.4a2"
    4. resolution changed to: "Fixed"
    5. subsystem changed to: "15. Dict Object"
  5. Ticket change [c47451d3ff] (rid 111853) by dgp on 2001-04-05 07:10:07:

    1. closedate changed to: "2001-04-05T00:10:07"
    2. closer changed to: "dgp"
    3. subsystem changed to: "18. Commands M-Z"