Artifacts Associated With Ticket 694232ffffffffff
Ticket change [f9014720a7] (rid 91636) by uring on 2003-02-27 08:23:43:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The command lsearch -start 0 {} x causes a segmentation fault. This happens in function Tcl_LsearchObjCmd(). The given argument "-start 0" in combination with an empty list causes the variable "offset" to become -1. From snapshot 2003-02-25: 2931 if (offset < 0) { 2932 offset = 0; 2933 } else if (offset > listc-1) { 2934 offset = listc-1; 2935 } I'd prefer to have line 2934 as follows: 2934 offset = listc > 0 ? listc-1 : 0; Perhaps this is also worth a test in lsearch.test, for example: test lsearch-xx.x {combine -start 0 with empty list} { lsearch -start 0 {} x } -1 - foundin initialized to: "obsolete: 8.4.1.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "uring"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "lsearch causes segmentation fault"
- type initialized to: "Bug"
Ticket change [b9747c75b7] (rid 129145) by dkf on 2003-02-27 16:50:41:
- priority changed to: "9 Immediate"
Ticket change [f635601dcb] (rid 130253) by dkf on 2003-02-27 23:14:00:
- closedate changed to: "2003-02-27T16:14:00"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed. (Why are these bugs always found during code-freeze?)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"
Ticket change [3612acc4d3] (rid 107055) by dgp on 2003-02-27 23:55:18:
- closedate changed to: "2003-02-27T16:55:18"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 ...because more people actually test during code freeze?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"