Skip to content
Tcl Source Code History Of Ticket 694232ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 694232ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 694232ffffffffffffffffffffffffffffffffff

  1. Ticket change [f9014720a7] (rid 91636) by uring on 2003-02-27 08:23:43:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.4.1.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "uring"
    9. subsystem initialized to: "17. Commands I-L"
    10. title initialized to: "lsearch causes segmentation fault"
    11. type initialized to: "Bug"
  2. Ticket change [b9747c75b7] (rid 129145) by dkf on 2003-02-27 16:50:41:

    1. priority changed to: "9 Immediate"
  3. Ticket change [f635601dcb] (rid 130253) by dkf on 2003-02-27 23:14:00:

    1. closedate changed to: "2003-02-27T16:14:00"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed.  (Why are these bugs always found during
      code-freeze?)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"
  4. Ticket change [3612acc4d3] (rid 107055) by dgp on 2003-02-27 23:55:18:

    1. closedate changed to: "2003-02-27T16:55:18"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      ...because more people actually test
      during code freeze?
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"