Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a3fe039006bf92d576992d20d6736aaeddc1a762
Ticket: 1564677fffffffffffffffffffffffffffffffff
possible NULL deref in Tcl_DeleteEvents
User & Date: nobody on 2006-09-25 05:58:22
Changes

  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"