Skip to content
Tcl Source Code History Of Ticket 1564677fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1564677fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1564677fffffffffffffffffffffffffffffffff

  1. Ticket change [2a38ece3b0] (rid 118517) by msofer on 2006-09-24 19:28:35:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Coverity's bug #10 complains that the line 
         prevPtr->nextPtr = evPtr->nextPtr;
      in Tcl_DeleteEvents might be dereferencing a NULL prevPtr. 
      
      At first sight I can not see why that would be wrong.
      Is this a bug?
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "01. Notifier"
    11. title initialized to: "possible NULL deref in Tcl_DeleteEvents"
    12. type initialized to: "Bug"
  2. Ticket change [a3fe039006] (rid 110135) by nobody on 2006-09-25 05:58:22:

    1. icomment:
      Logged In: NO 
      
      The outermost for (;;) loop has the invariant:
      
         (tsdPtr->firstEventPtr == evPtr) <==> (prevPtr == NULL)
      
      Replacing the test 'if (tsdPtr->firstEventPtr == evPtr)'
      with the equivalent 'if (prevPtr == NULL)' ought to fix the
      warning since the assignment to 'prevPtr->nextPtr' is in the
      'else' clause.  Or perhaps even better:
      
          if (prevPtr != NULL) {
              prevPtr->nextPtr = evPtr->nextPtr;
          } else {
              tsdPtr->firstEventPtr = evPtr->nextPtr;
          }
      
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [d0befb7cd7] (rid 113236) by jenglish on 2006-09-25 06:02:18:

    1. icomment:
      Logged In: YES 
      user_id=68433
      
      (last comment was from me -- sorry, forgot to log in first
      ("Remember me" seems to have no effect...))
      
      
    2. login: "jenglish"
    3. mimetype: "text/plain"
    4. username: "jenglish"
  4. Ticket change [84c3fc6366] (rid 117617) by dkf on 2006-09-25 07:09:54:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2006-09-25T00:09:54"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      
      The problem is that demonstrating that the pointer is
      non-NULL is significantly tricky; it relies on higher order
      properties (and could theoretically be messed up by
      maintenance). "Fixed" in HEAD by replacing the offending
      line with:
      
      if (prevPtr == NULL) {
          Tcl_Panic("badly connected event list");
      } else {
          prevPtr->nextPtr = evPtr->nextPtr;
      }
      
      Let me know if a backport is needed.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"
    9. username: "dkf"
  5. Ticket change [58d12305ee] (rid 117864) by sf-robot on 2006-10-09 09:20:08:

    1. closedate changed to: "2006-10-09T02:20:08"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"