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

Issue 2386343002: Make sure the fuzzer read size does not go negative. (Closed)

Created:
4 years, 2 months ago by dsinclair
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Make sure the fuzzer read size does not go negative. When fuzzing the image formats, its possible to get a read request which would go negative. Handle the request and return FALSE for the read. BUG=chromium:621836 Committed: https://pdfium.googlesource.com/pdfium/+/fb403875dd1bbf830d9325f10e6a5650db30c6fd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review feedback #

Total comments: 4

Patch Set 3 : Review feedback #

Total comments: 2

Patch Set 4 : Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M testing/libfuzzer/xfa_codec_fuzzer.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
dsinclair
PTAL.
4 years, 2 months ago (2016-10-03 21:05:11 UTC) #2
Lei Zhang
https://codereview.chromium.org/2386343002/diff/1/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/1/testing/libfuzzer/xfa_codec_fuzzer.h#newcode54 testing/libfuzzer/xfa_codec_fuzzer.h:54: if (offset > m_size) Shouldn't we check this first ...
4 years, 2 months ago (2016-10-03 21:16:50 UTC) #5
dsinclair
https://codereview.chromium.org/2386343002/diff/1/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/1/testing/libfuzzer/xfa_codec_fuzzer.h#newcode54 testing/libfuzzer/xfa_codec_fuzzer.h:54: if (offset > m_size) On 2016/10/03 21:16:50, Lei Zhang ...
4 years, 2 months ago (2016-10-04 13:11:07 UTC) #10
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-04 18:35:12 UTC) #13
Lei Zhang
https://codereview.chromium.org/2386343002/diff/20001/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/20001/testing/libfuzzer/xfa_codec_fuzzer.h#newcode52 testing/libfuzzer/xfa_codec_fuzzer.h:52: if (offset < 0 || offset > m_size) Erm, ...
4 years, 2 months ago (2016-10-04 18:35:13 UTC) #14
dsinclair
https://codereview.chromium.org/2386343002/diff/20001/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/20001/testing/libfuzzer/xfa_codec_fuzzer.h#newcode52 testing/libfuzzer/xfa_codec_fuzzer.h:52: if (offset < 0 || offset > m_size) On ...
4 years, 2 months ago (2016-10-04 18:48:08 UTC) #15
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/2386343002/40001
4 years, 2 months ago (2016-10-04 19:11:18 UTC) #18
Lei Zhang
https://codereview.chromium.org/2386343002/diff/40001/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/40001/testing/libfuzzer/xfa_codec_fuzzer.h#newcode52 testing/libfuzzer/xfa_codec_fuzzer.h:52: if (offset <= 0 || offset >= m_size) No, ...
4 years, 2 months ago (2016-10-04 19:13:15 UTC) #19
dsinclair
https://codereview.chromium.org/2386343002/diff/40001/testing/libfuzzer/xfa_codec_fuzzer.h File testing/libfuzzer/xfa_codec_fuzzer.h (right): https://codereview.chromium.org/2386343002/diff/40001/testing/libfuzzer/xfa_codec_fuzzer.h#newcode52 testing/libfuzzer/xfa_codec_fuzzer.h:52: if (offset <= 0 || offset >= m_size) On ...
4 years, 2 months ago (2016-10-04 19:15:29 UTC) #21
dsinclair
PTAL.
4 years, 2 months ago (2016-10-04 19:18:02 UTC) #22
Lei Zhang
lgtm
4 years, 2 months ago (2016-10-04 19:21:55 UTC) #23
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/2386343002/60001
4 years, 2 months ago (2016-10-04 19:26:46 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 19:38:25 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/fb403875dd1bbf830d9325f10e6a5650db30...

Powered by Google App Engine
This is Rietveld 408576698