model-writtenrun 3145 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kuznetsov reported a possible NULL dereference in afterTriggerAddEvent() and proposed asserting that events->tail is non-NULL immediately before accessing its next member #1.
- Alvaro Herrera explained that the list's head and tail must be NULL together, making the original assertion redundant, and suggested testing the tail directly while asserting that the head is NULL in the empty-list branch #2.
- Alexander Kuznetsov adopted that suggestion in the revised patch, noting that the explicit tail check also protects the dereference when assertions are disabled #3.
- After Alexander Kuznetsov requested an update #4, Alvaro Herrera said there were no objections and promised to commit the patch #5.
- Alvaro Herrera committed the revised patch #3 unchanged as dce507356a and confirmed completion #6; the commit explains that no backpatch was needed because this longstanding code had no known related bug reports.