Artifacts Associated With Ticket 1564677fffffffff
Ticket change [2a38ece3b0] (rid 118517) by msofer on 2006-09-24 19:28:35:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- 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?
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "01. Notifier"
- title initialized to: "possible NULL deref in Tcl_DeleteEvents"
- type initialized to: "Bug"
Ticket change [a3fe039006] (rid 110135) by nobody on 2006-09-25 05:58:22:
- 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; } - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [d0befb7cd7] (rid 113236) by jenglish on 2006-09-25 06:02:18:
- 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...)) - login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [84c3fc6366] (rid 117617) by dkf on 2006-09-25 07:09:54:
- assignee changed to: "dkf"
- closedate changed to: "2006-09-25T00:09:54"
- closer changed to: "dkf"
- 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. - login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "dkf"
Ticket change [58d12305ee] (rid 117864) by sf-robot on 2006-10-09 09:20:08:
- closedate changed to: "2006-10-09T02:20:08"
- closer changed to: "sf-robot"
- 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).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"