Make sure mAnimatedGeometryRoot is initialized to nullptr in the rarely used nsDisplayItem that takes an nsIFrame*

RESOLVED FIXED in Firefox 57

Status

()

defect
P3
normal
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: jwatt, Assigned: jwatt)

Tracking

unspecified
mozilla58
Points:
---
Bug Flags:
qe-verify -

Firefox Tracking Flags

(firefox57+ fixed, firefox58 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

2 years ago
Seems like the pointer mAnimatedGeometryRoot is not initialized in the rarely used nsDisplayItem that takes an nsIFrame*.
Assignee

Comment 1

2 years ago
Posted patch patchSplinter Review
Attachment #8915149 - Flags: review?(matt.woodrow)
Assignee

Comment 2

2 years ago
I'm guessing we could possibly end up dereferencing an uninitialized pointer here, so maybe not a bad idea to uplift since it should be completely safe.
Attachment #8915149 - Flags: review?(matt.woodrow) → review+
[Tracking Requested - why for this release]: see comment 2

Comment 4

2 years ago
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c45a9377bfb7
Make sure mAnimatedGeometryRoot is initialized to nullptr in the rarely used nsDisplayItem ctor that takes an nsIFrame*. r=mattwoodrow

Comment 5

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/c45a9377bfb7
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
please request uplift to beta when you get a chance.
Flags: needinfo?(jwatt)
Assignee

Comment 7

2 years ago
Comment on attachment 8915149 [details] [diff] [review]
patch

Approval Request Comment
[Feature/Bug causing the regression]: been around a while
[User impact if declined]: potential dereference of uninitialized memory
[Is this code covered by automated tests?]: how we'd trigger a derefernce is unexplored
[Has the fix been verified in Nightly?]: yes
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: simply initializing a pointer to null - crashing would be better than a security issue
[String changes made/needed]: none
Flags: needinfo?(jwatt)
Attachment #8915149 - Flags: approval-mozilla-beta?
Comment on attachment 8915149 [details] [diff] [review]
patch

makes sense, beta57+
Attachment #8915149 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
(In reply to Jonathan Watt [:jwatt] (needinfo? me) from comment #7)
> [Needs manual test from QE? If yes, steps to reproduce]: no

Marking this issue as qe-, per Jonathan's assessment on manual testing needs
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.