Null TimelineManager dereference in GetNamedProgressTimeline
Categories
(Core :: CSS Transitions and Animations, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox153 | --- | unaffected |
| firefox154 | --- | unaffected |
| firefox155 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: Sylvestre)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
In layout/style/nsAnimationManager.cpp, timelineManager is set to presContext ? presContext->TimelineManager() : nullptr and correctly null-checked in the first operand of the condition, but the second operand e == aDocument->GetDocumentElement() can be true on its own, and the body then calls timelineManager->GetNamedTimelineInSubtree() unconditionally. A document with no pres context reaches the dereference.
Coverity CID 1699955 ("Dereference after null check").
| Assignee | ||
Comment 1•3 months ago
|
||
timelineManager is null when the document has no pres context. It was
correctly null-checked in the first operand of the condition, but the
second operand, e == aDocument->GetDocumentElement(), can be true on its
own and the body then dereferenced it unconditionally.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 2•3 months ago
|
||
Set release status flags based on info from the regressing bug 2024012
Comment 4•3 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Description
•