Artifacts Associated With Ticket 220996
Ticket change [b807bc6f0b] (rid 128906) by nobody on 2000-11-01 14:51:16:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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); } - foundin initialized to: ""
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: ""
- title initialized to: "'string index' doesn't do bounds checking"
- type initialized to: "Bug"
Ticket change [0430c138f3] (rid 119954) by ericm on 2000-11-02 03:50:33:
- icomment:
This bug has already been fixed for 8.4a2. Eric Melski The Other Tcl Guy ericm at ajubasolutions.com Ajuba Solutions
- login: "ericm"
- mimetype: "text/plain"
- username: "ericm"
- icomment:
Ticket change [3afa815b15] (rid 112652) by ericm on 2000-11-02 04:35:32:
- closedate changed to: "2000-11-01T21:35:32"
- closer changed to: "ericm"
- status changed to: "Closed"
Ticket change [b1b857a75e] (rid 98200) by ericm on 2000-11-02 04:40:25:
- closedate changed to: "2000-11-01T21:40:25"
- closer changed to: "ericm"
- foundin changed to: "obsolete: 8.4a2"
- resolution changed to: "Fixed"
- subsystem changed to: "15. Dict Object"
Ticket change [c47451d3ff] (rid 111853) by dgp on 2001-04-05 07:10:07:
- closedate changed to: "2001-04-05T00:10:07"
- closer changed to: "dgp"
- subsystem changed to: "18. Commands M-Z"