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

Issue 2199493002: libFuzzer for blink::MHTMLParser (Closed)

Created:
4 years, 4 months ago by Łukasz Anforowicz
Modified:
4 years, 4 months ago
CC:
blink-reviews, chromium-reviews, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

libFuzzer for blink::MHTMLParser For more information about libFuzzer, please see https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/README.md BUG= Committed: https://crrev.com/c32cfbb16c41dc98fbf72894fba83916076d70ee Cr-Commit-Position: refs/heads/master@{#412335}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 11

Patch Set 4 : Addressed CR feedback from mmoroz@. #

Total comments: 4

Patch Set 5 : Use #include "base/..." (instead of #include <base/...>). #

Patch Set 6 : Move more shared initialization to TestingPlatformSupport.cpp #

Patch Set 7 : Don't call base::i18n::InitializeICU during setup of regular unit tests. #

Total comments: 12

Patch Set 8 : Addressed CR feedback from esprehn@. #

Patch Set 9 : No ICU in NaCl builds. #

Patch Set 10 : No need for BASE_EXPORT on InitializeICUForTesting (//base/test:test_support is a static_library, n… #

Total comments: 9

Patch Set 11 : Addressed CR feedback from esprehn@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -84 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M base/test/icu_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/icu_test_util.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
A testing/libfuzzer/fuzzers/dicts/mhtml.dict View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 2 chunks +19 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mhtml/MHTMLParser.cpp View 1 10 chunks +15 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ParsedContentType.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/RunAllTests.cpp View 1 2 3 4 5 7 2 chunks +4 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +82 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
Łukasz Anforowicz
Max, can you take a look from libFuzzer perspective? (I'll get owners review later) Is ...
4 years, 4 months ago (2016-07-29 23:43:58 UTC) #2
mmoroz
I left some comments, LGTM on libfuzzer side. I think it should be interesting, thanks ...
4 years, 4 months ago (2016-08-01 17:41:37 UTC) #3
Łukasz Anforowicz
Thanks for the review. https://codereview.chromium.org/2199493002/diff/40001/testing/libfuzzer/fuzzers/dicts/mhtml.dict File testing/libfuzzer/fuzzers/dicts/mhtml.dict (right): https://codereview.chromium.org/2199493002/diff/40001/testing/libfuzzer/fuzzers/dicts/mhtml.dict#newcode2 testing/libfuzzer/fuzzers/dicts/mhtml.dict:2: # AFL dictionary for MHTML ...
4 years, 4 months ago (2016-08-01 21:09:40 UTC) #4
Łukasz Anforowicz
tkent@, could you please take a look?
4 years, 4 months ago (2016-08-02 00:13:33 UTC) #8
tkent
https://codereview.chromium.org/2199493002/diff/60001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp (right): https://codereview.chromium.org/2199493002/diff/60001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode13 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:13: #include <base/command_line.h> Do not use |#include <>| for chromium ...
4 years, 4 months ago (2016-08-02 23:00:45 UTC) #9
Łukasz Anforowicz
tkent@ - thanks for the review, can you take another look please (at the diff ...
4 years, 4 months ago (2016-08-03 16:02:46 UTC) #10
tkent
Many blink unit tests are failing. Please resolve it. +esprehn for DEPS change.
4 years, 4 months ago (2016-08-03 23:21:10 UTC) #12
esprehn
This needs a better change description, what bot runs these? It's not clear this is ...
4 years, 4 months ago (2016-08-03 23:24:19 UTC) #13
Łukasz Anforowicz
mmoroz@, could you please help with generic libfuzzer questions from esprehn@? On 2016/08/03 23:21:10, tkent ...
4 years, 4 months ago (2016-08-04 04:07:17 UTC) #15
esprehn
https://codereview.chromium.org/2199493002/diff/160001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp (right): https://codereview.chromium.org/2199493002/diff/160001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode23 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:23: mhtmlArchives.clear(); why manually clear on stack vectors? https://codereview.chromium.org/2199493002/diff/160001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode24 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:24: ...
4 years, 4 months ago (2016-08-04 04:37:53 UTC) #16
Łukasz Anforowicz
esprehn@, could you take another look please? PS. Sorry for sending this out without waiting ...
4 years, 4 months ago (2016-08-04 17:37:30 UTC) #17
Łukasz Anforowicz
It seems that the last patchset hit compile issues on linux trybots - this CL ...
4 years, 4 months ago (2016-08-05 23:34:05 UTC) #18
mmoroz
Regarding #15, sorry for the delay - I was attending a security conference. Lukasz, I ...
4 years, 4 months ago (2016-08-09 02:24:01 UTC) #19
Łukasz Anforowicz
tkent@ and esprehn@ - this CL should now be ready for a rereview please: 1) ...
4 years, 4 months ago (2016-08-09 21:28:33 UTC) #20
tkent
third_party/WebKit lgtm. Please get esprehn's lgtm too.
4 years, 4 months ago (2016-08-10 01:32:16 UTC) #21
esprehn
https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp (right): https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode40 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:40: static blink::ScopedUnittestsEnvironmentSetup testSetup(*argc, *argv); DEFINE_STATIC_LOCAL(...) https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp File third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp (right): ...
4 years, 4 months ago (2016-08-10 04:05:29 UTC) #22
mmoroz
https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp (right): https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode13 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:13: #include <stddef.h> On 2016/08/09 21:28:33, Łukasz Anforowicz wrote: > ...
4 years, 4 months ago (2016-08-10 09:12:56 UTC) #23
Łukasz Anforowicz
esprehn@, can you take another look please? https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp File third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp (right): https://codereview.chromium.org/2199493002/diff/220001/third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp#newcode40 third_party/WebKit/Source/platform/mhtml/MHTMLFuzzer.cpp:40: static blink::ScopedUnittestsEnvironmentSetup ...
4 years, 4 months ago (2016-08-10 19:31:18 UTC) #24
esprehn
lgtm
4 years, 4 months ago (2016-08-11 09:36:19 UTC) #25
Łukasz Anforowicz
phajdan.jr@, could you please take a look at the changes under base/test? The new MHTMLFuzzer.cpp ...
4 years, 4 months ago (2016-08-11 14:08:24 UTC) #27
Charlie Harrison
FYI I am also interested using the test infrastructure added in this CL to use ...
4 years, 4 months ago (2016-08-15 19:12:11 UTC) #29
Paweł Hajdan Jr.
base/test LGTM
4 years, 4 months ago (2016-08-16 09:04:08 UTC) #30
Łukasz Anforowicz
dcheng@, could you please stamp the changes in base/BUILD.gn (I am just moving icu_test_util.h/.cc from ...
4 years, 4 months ago (2016-08-16 14:39:40 UTC) #32
dcheng
rs lgtm for //base changes
4 years, 4 months ago (2016-08-16 21:00:40 UTC) #37
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/2199493002/240001
4 years, 4 months ago (2016-08-16 21:03:58 UTC) #40
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 4 months ago (2016-08-16 21:08:56 UTC) #41
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 21:11:52 UTC) #43
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c32cfbb16c41dc98fbf72894fba83916076d70ee
Cr-Commit-Position: refs/heads/master@{#412335}

Powered by Google App Engine
This is Rietveld 408576698