Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Issue 2763613003: Fix signed integer overflow in ImageData (Closed)

Created:
3 years, 9 months ago by zakerinasab
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix signed integer overflow in ImageData Fix signed integer overflow in ImageData catched by ClusterFuzz. BUG=702972 Review-Url: https://codereview.chromium.org/2763613003 Cr-Commit-Position: refs/heads/master@{#458559} Committed: https://chromium.googlesource.com/chromium/src/+/e345a1b1fa759b19df872d727b30d34727cc199d

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments #

Patch Set 3 : Adding tests #

Total comments: 2

Patch Set 4 : Adding test for too big ImageData #

Total comments: 1

Patch Set 5 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -7 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.cpp View 1 2 3 4 3 chunks +12 lines, -7 lines 0 comments Download
A third_party/WebKit/Source/core/html/ImageDataTest.cpp View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
Justin Novosad
Please add a test. https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp#newcode184 third_party/WebKit/Source/core/html/ImageData.cpp:184: 4 * (unsigned)(size.width()) * (unsigned)(size.height()), ...
3 years, 9 months ago (2017-03-20 16:03:55 UTC) #3
zakerinasab
https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp#newcode184 third_party/WebKit/Source/core/html/ImageData.cpp:184: 4 * (unsigned)(size.width()) * (unsigned)(size.height()), On 2017/03/20 16:03:55, Justin ...
3 years, 9 months ago (2017-03-20 16:06:34 UTC) #4
Justin Novosad
https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp#newcode184 third_party/WebKit/Source/core/html/ImageData.cpp:184: 4 * (unsigned)(size.width()) * (unsigned)(size.height()), On 2017/03/20 16:06:33, zakerinasab ...
3 years, 9 months ago (2017-03-20 16:18:40 UTC) #5
zakerinasab
https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp File third_party/WebKit/Source/core/html/ImageData.cpp (right): https://codereview.chromium.org/2763613003/diff/1/third_party/WebKit/Source/core/html/ImageData.cpp#newcode184 third_party/WebKit/Source/core/html/ImageData.cpp:184: 4 * (unsigned)(size.width()) * (unsigned)(size.height()), On 2017/03/20 16:18:40, Justin ...
3 years, 9 months ago (2017-03-20 16:31:26 UTC) #6
Justin Novosad
still needs a test.
3 years, 9 months ago (2017-03-20 17:17:24 UTC) #7
zakerinasab
On 2017/03/20 17:17:24, Justin Novosad wrote: > still needs a test. Test added.
3 years, 9 months ago (2017-03-20 17:58:24 UTC) #8
Justin Novosad
https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode37 third_party/WebKit/Source/core/html/ImageDataTest.cpp:37: imageData = ImageData::create(IntSize(-1, -1)); You forgot to cover large ...
3 years, 9 months ago (2017-03-20 18:03:33 UTC) #9
zakerinasab
On 2017/03/20 18:03:33, Justin Novosad wrote: > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp > File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): > > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode37 ...
3 years, 9 months ago (2017-03-20 18:10:31 UTC) #10
Justin Novosad
On 2017/03/20 18:10:31, zakerinasab wrote: > On 2017/03/20 18:03:33, Justin Novosad wrote: > > > ...
3 years, 9 months ago (2017-03-20 19:09:56 UTC) #11
zakerinasab
https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode37 third_party/WebKit/Source/core/html/ImageDataTest.cpp:37: imageData = ImageData::create(IntSize(-1, -1)); On 2017/03/20 18:03:33, Justin Novosad ...
3 years, 9 months ago (2017-03-20 20:50:33 UTC) #12
zakerinasab
On 2017/03/20 20:50:33, zakerinasab wrote: > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp > File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): > > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode37 > ...
3 years, 9 months ago (2017-03-21 15:55:36 UTC) #14
zakerinasab
On 2017/03/20 20:50:33, zakerinasab wrote: > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp > File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): > > https://codereview.chromium.org/2763613003/diff/30002/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode37 > ...
3 years, 9 months ago (2017-03-21 15:55:38 UTC) #15
Justin Novosad
lgtm with nit. https://codereview.chromium.org/2763613003/diff/50001/third_party/WebKit/Source/core/html/ImageDataTest.cpp File third_party/WebKit/Source/core/html/ImageDataTest.cpp (right): https://codereview.chromium.org/2763613003/diff/50001/third_party/WebKit/Source/core/html/ImageDataTest.cpp#newcode44 third_party/WebKit/Source/core/html/ImageDataTest.cpp:44: ImageData* tooBigImageData = ImageData::create(32767, 32767, exceptionState); ...
3 years, 9 months ago (2017-03-21 17:07:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763613003/70001
3 years, 9 months ago (2017-03-21 20:03:33 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 21:42:05 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://chromium.googlesource.com/chromium/src/+/e345a1b1fa759b19df872d727b30...

Powered by Google App Engine
This is Rietveld 408576698