Closed Bug 1364552 Opened 7 years ago Closed 6 years ago

Delete unused code in ImageBitMapColorUtils.cpp

Categories

(Core :: Graphics: Canvas2D, enhancement)

enhancement
Not set
major

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: decoder, Assigned: lorena9921)

Details

(Keywords: sec-audit, sec-want, Whiteboard: [adv-main59-])

Attachments

(1 file)

Static analysis barked on this function due to the use of unchecked multiplication flowing into a memcpy:

http://searchfox.org/mozilla-central/rev/cd8c561106d804e26bc09389f18f361846d005eb/dom/canvas/ImageBitmapColorUtils.cpp#419

Jeff mentioned that this was used by the code we disabled due to pwn2own and thinks it should just be deleted from the codebase. It isn't used anywhere except in a gtest. Filing this bug to make sure the deletion happens.
Comment on attachment 8905546 [details]
Bug 1364552 - Deleted unused RGB24Copy function, and corresponding macros and tests.

Forwarding review, as I am not a peer for this part of the codebase.
Attachment #8905546 - Flags: review?(choller) → review?(lsalzman)
Comment on attachment 8905546 [details]
Bug 1364552 - Deleted unused RGB24Copy function, and corresponding macros and tests.

https://reviewboard.mozilla.org/r/177342/#review184584
Attachment #8905546 - Flags: review?(lsalzman) → review+
Lorena, do you plan to land this, or do you need someone to land this for you?
Flags: needinfo?(lorena9921)
Jonathan, can this be landed as is? :-)
Flags: needinfo?(jwatt)
Yes, it sure looks like it.
Flags: needinfo?(jwatt)
Flags: needinfo?(lorena9921) → needinfo?(jwatt)
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/autoland/rev/aaa8f66aac3b
Deleted unused RGB24Copy function, and corresponding macros and tests. r=lsalzman
https://hg.mozilla.org/mozilla-central/rev/aaa8f66aac3b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Flags: needinfo?(jwatt)
Whiteboard: [adv-main59-]
Assignee: nobody → lorena9921
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: