Closed
Bug 1359462
Opened 7 years ago
Closed 7 years ago
wr_dp_new_clip_region tries to make a slice using a nullptr
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file, 1 obsolete file)
See bug 1357734 comment 13 for backstory. Any call to DisplayListBuilder::BuildClipRegion(rect, mask) will pass nullptr as the complex clip list pointer down to rust code, which passes that nullptr directly into slice::from_raw_parts [1], which is not allowed per the from_raw_parts documentation. This is potentially the cause of bug 1357734, although I'm not sure about that yet. [1] http://searchfox.org/mozilla-central/rev/baf47b352e873d4516d7656186d6d7c7447d3873/gfx/webrender_bindings/src/bindings.rs#1119
Assignee | ||
Comment 1•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f8d00a9b28d34952d9df5a45f51ccc195d812ef7 ^ I wrote the patches based on master originally and pushed to try. I had to rebase onto graphics which was slightly nontrivial. I think it makes more sense to land on graphics.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1ec4085ba33f0dff556c7d99d14f6f962ab6f850 ^ push to try after rebase to graphics.
Assignee | ||
Comment 5•7 years ago
|
||
Whoops, screwed that up. New patches coming.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•7 years ago
|
||
And new try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e6a2c26ac3279e610050e4f3169251d760f82dc1
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8861532 -
Attachment is obsolete: true
Attachment #8861532 -
Flags: review?(rhunt)
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8861531 [details] Bug 1359462 - Ensure we don't pass a nullptr to slice::from_raw_parts. https://reviewboard.mozilla.org/r/133506/#review136404 Thanks!
Attachment #8861531 -
Flags: review?(rhunt) → review+
Comment 11•7 years ago
|
||
Pushed by kgupta@mozilla.com: https://hg.mozilla.org/projects/graphics/rev/5fe20b166827 Ensure we don't pass a nullptr to slice::from_raw_parts. r=rhunt
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 12•7 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5fe20b166827
status-firefox55:
--- → fixed
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•