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

Issue 2248383002: Fix integer overflow (-INT_MIN) in blink::BMPImageReader::readInfoHeader (Closed)

Created:
4 years, 4 months ago by aleksandar.stojiljkovic
Modified:
4 years, 4 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix integer overflow (-INT_MIN) in blink::BMPImageReader::readInfoHeader BUG=638445 Committed: https://crrev.com/cbe3909f4f64e0f00e2eea6898395ece4672c913 Cr-Commit-Position: refs/heads/master@{#413124}

Patch Set 1 #

Total comments: 4

Patch Set 2 : test and comment #3 fix. Thanks pkasting@ #

Patch Set 3 : #5 fix #

Total comments: 2

Patch Set 4 : #7 fix. #

Patch Set 5 : remove 1x-1 bmp test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/images/resources/1xint32_min.bmp View 1 2 3 Binary file 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
aleksandar.stojiljkovic
I didn't create unit test for this since there is test in https://cluster-fuzz.appspot.com/.
4 years, 4 months ago (2016-08-17 13:06:15 UTC) #2
Peter Kasting
On 2016/08/17 13:06:15, aleksandar.stojiljkovic wrote: > I didn't create unit test for this since there ...
4 years, 4 months ago (2016-08-17 22:21:24 UTC) #3
aleksandar.stojiljkovic
Patch Set 2 : test and comment #3 fix. Thanks pkasting@ https://codereview.chromium.org/2248383002/diff/1/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp File third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp (right): ...
4 years, 4 months ago (2016-08-18 21:31:00 UTC) #4
Peter Kasting
Rather than change the test code, can you just construct a BMP with the relevant ...
4 years, 4 months ago (2016-08-18 22:06:43 UTC) #5
aleksandar.stojiljkovic
On 2016/08/18 22:06:43, Peter Kasting wrote: > Rather than change the test code, can you ...
4 years, 4 months ago (2016-08-19 08:32:37 UTC) #6
Peter Kasting
https://codereview.chromium.org/2248383002/diff/40001/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp File third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp (right): https://codereview.chromium.org/2248383002/diff/40001/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp#newcode73 third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp:73: const unsigned char whiteBMP[] = { Why not just ...
4 years, 4 months ago (2016-08-19 08:42:51 UTC) #7
aleksandar.stojiljkovic
Patch Set 4: fix #7. https://codereview.chromium.org/2248383002/diff/40001/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp File third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp (right): https://codereview.chromium.org/2248383002/diff/40001/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp#newcode73 third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoderTest.cpp:73: const unsigned char whiteBMP[] ...
4 years, 4 months ago (2016-08-19 09:33:04 UTC) #8
Peter Kasting
Yeah, we've got some top-down BMPs in the (non-public) webkit/data/bmp_decoder dir. SHould be safe to ...
4 years, 4 months ago (2016-08-19 09:37:25 UTC) #9
aleksandar.stojiljkovic
On 2016/08/19 09:37:25, Peter Kasting wrote: > Yeah, we've got some top-down BMPs in the ...
4 years, 4 months ago (2016-08-19 09:44:47 UTC) #10
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/2248383002/80001
4 years, 4 months ago (2016-08-19 09:45:21 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-19 13:29:54 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 13:31:18 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cbe3909f4f64e0f00e2eea6898395ece4672c913
Cr-Commit-Position: refs/heads/master@{#413124}

Powered by Google App Engine
This is Rietveld 408576698