nsDOMWindowUtils::CompareCanvases() checks img1, img2 for NULL after dereferencing them
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: izbyshev, Assigned: izbyshev)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: good-first-bug, regression)
Attachments
(1 file)
img1
and img2
are dereferenced at https://searchfox.org/mozilla-central/rev/85ae3b91/dom/base/nsDOMWindowUtils.cpp#1301, but are checked for NULL only after that. Shouldn't the checks be moved up?
Assignee | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
This line is added in bug 1428946.
Add author and reviewer to comment this.
Assignee | ||
Comment 2•4 years ago
|
||
Even before that line was added, img1
/img2
were dereferenced on creation of map1
/map2
(https://searchfox.org/mozilla-central/rev/85ae3b91/dom/base/nsDOMWindowUtils.cpp#1306 via https://searchfox.org/mozilla-central/rev/85ae3b91/gfx/2d/2D.h#522).
Comment 4•4 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #3)
Correct :)
It looks like a good first bug for volunteer.
Hi Alexey,
it will be nice if you can contribute this fix. :)
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch
Assignee | ||
Comment 5•4 years ago
|
||
The dereference before the NULL check was introduced in bug 1162357. I've added the author to CC (though he is on leave now) and submitted a patch.
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Comment 7•4 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•