Closed
Bug 1144625
Opened 9 years ago
Closed 2 years ago
Useless initialization of rect in nsRegion::SimplifyOutwardByArea
Categories
(Core :: Graphics, defect, P3)
Core
Graphics
Tracking
()
RESOLVED
INVALID
People
(Reporter: bogato, Unassigned, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: clang-analyzer, Whiteboard: [lang=c++][gfx-noted])
Attachments
(1 file, 1 obsolete file)
1.63 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150306140254 Steps to reproduce: In nsRegion::SimplifyOutwardByArea (line 315), the value stored is never read. Moreover, it is used only on the first if statement (line 335).
Reporter | ||
Updated•9 years ago
|
Mentor: jmuizelaar
Severity: normal → trivial
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [lang=c++]
Reporter | ||
Updated•9 years ago
|
Attachment #8579310 -
Flags: review?(jmuizelaar)
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 1•9 years ago
|
||
checkin-needed is used to signify patches that are ready to land, which comes after they've gone through review :) Also, please see the link below and be sure to generate a patch that contains the needed commit information for landing: https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F Thanks for the patch!
Assignee: nobody → bogato
Component: Untriaged → Graphics
Keywords: checkin-needed
Product: Firefox → Core
Comment 2•9 years ago
|
||
Comment on attachment 8579310 [details] [diff] [review] patch.diff Review of attachment 8579310 [details] [diff] [review]: ----------------------------------------------------------------- How did you find this? Was it with an automated tool? ::: gfx/src/nsRegion.cpp @@ +311,4 @@ > tmpStorage.SetCapacity(n); > pixman_box32_t *tmpRect = tmpStorage.Elements(); > > + pixman_box32_t *destRect = boxes; There's a bit of added white space here. Please remove it.
Attachment #8579310 -
Flags: review?(jmuizelaar) → review+
Reporter | ||
Comment 3•9 years ago
|
||
Hi ! I found this with an automated tool. I removed the space and followed the instructions to generate this patch !
Attachment #8579310 -
Attachment is obsolete: true
Attachment #8580247 -
Flags: review?(jmuizelaar)
Comment 4•9 years ago
|
||
(In reply to Quentin BOUILLAGUET from comment #3) > Created attachment 8580247 [details] [diff] [review] > patch.diff > > Hi ! > I found this with an automated tool. > I removed the space and followed the instructions to generate this patch ! What was the tool?
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #4) > (In reply to Quentin BOUILLAGUET from comment #3) > > Created attachment 8580247 [details] [diff] [review] > > patch.diff > > > > Hi ! > > I found this with an automated tool. > > I removed the space and followed the instructions to generate this patch ! > > What was the tool? I'm currently a student. Our professor gave us a list of some easy fixes to learn how to contribute to mozilla. So... I don't know wich tools he used.
Comment 6•9 years ago
|
||
I'd be very interested in knowing what tool it was.
Updated•9 years ago
|
Attachment #8580247 -
Flags: review?(jmuizelaar) → review+
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Quentin BOUILLAGUET from comment #5) > (In reply to Jeff Muizelaar [:jrmuizel] from comment #4) > > (In reply to Quentin BOUILLAGUET from comment #3) > > > Created attachment 8580247 [details] [diff] [review] > > > patch.diff > > > > > > Hi ! > > > I found this with an automated tool. > > > I removed the space and followed the instructions to generate this patch ! > > > > What was the tool? Hello ! The automated tool we used was scan-build from clang. > > > I'm currently a student. > Our professor gave us a list of some easy fixes to learn how to contribute > to mozilla. > So... I don't know wich tools he used.
Comment 8•9 years ago
|
||
Jeff, I did a presentation at this university . Their teacher is a good friend and I gave him some material. Drop me an email if you want to get access to it.
Updated•9 years ago
|
Keywords: clang-analyzer
Updated•9 years ago
|
Blocks: clang-based-analysis
Updated•9 years ago
|
Keywords: checkin-needed
Comment 9•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/277d8a11dc53
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Backed out for causing various Gaia python integration test failures. https://hg.mozilla.org/integration/mozilla-inbound/rev/e9d5b79e51a8 https://treeherder.mozilla.org/logviewer.html#?job_id=8549742&repo=mozilla-inbound https://treeherder.mozilla.org/logviewer.html#?job_id=8549826&repo=mozilla-inbound https://treeherder.mozilla.org/logviewer.html#?job_id=8549846&repo=mozilla-inbound https://treeherder.mozilla.org/logviewer.html#?job_id=8549825&repo=mozilla-inbound
Blocks: 1167410
No longer blocks: 1167410
Comment 11•8 years ago
|
||
Jeff, is this bug still relevant?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jmuizelaar)
Whiteboard: [lang=c++] → [lang=c++][gfx-noted]
Updated•7 years ago
|
Priority: -- → P3
Comment 12•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: bogato → nobody
Comment 13•2 years ago
|
||
This code has since been rewritten
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jmuizelaar)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•