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

Issue 2250263003: Move FuzzedDataProvider to //base and expose to blink (Closed)

Created:
4 years, 4 months ago by Charlie Harrison
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, loading-reviews+parser_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move FuzzedDataProvider to //base and expose to blink This patch moves FuzzedDataProvider from //net/base to //base. We also expose a wrapper type in blink platform for use in Blink fuzzers. This patch also implements a very simple fuzzer for TextResourceDecoder, which stress tests code operating on a raw byte stream. BUG=638653 Committed: https://crrev.com/f30fc95f50c3568509541ddb7b527fa5ea1fc201 Cr-Commit-Position: refs/heads/master@{#413253}

Patch Set 1 #

Patch Set 2 : rebase on #412595 #

Patch Set 3 : fix up net consumers #

Patch Set 4 : move FuzzedDataProvider from platform to platform/testing (trybots previous) #

Total comments: 4

Patch Set 5 : Added comment explaining byte ranges + var name in header #

Total comments: 2

Patch Set 6 : move to base/test #

Patch Set 7 : fix build files #

Patch Set 8 : Add fuzzer for TextResourceDecoder #

Total comments: 7

Patch Set 9 : eromans comments #

Patch Set 10 : Remove BASE_EXPORT from FuzzedDataProvider #

Patch Set 11 : ... also remove PLATFORM_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -219 lines) Patch
M base/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A + base/test/fuzzed_data_provider.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -8 lines 0 comments Download
A + base/test/fuzzed_data_provider.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
D net/base/fuzzed_data_provider.h View 1 chunk +0 lines, -74 lines 0 comments Download
D net/base/fuzzed_data_provider.cc View 1 chunk +0 lines, -76 lines 0 comments Download
M net/cert/internal/verify_name_match_fuzzer.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M net/cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M net/dns/fuzzed_host_resolver.h View 1 2 4 chunks +7 lines, -3 lines 0 comments Download
M net/dns/fuzzed_host_resolver.cc View 1 2 3 4 5 7 chunks +9 lines, -9 lines 0 comments Download
M net/dns/host_resolver_impl_fuzzer.cc View 1 2 3 4 5 7 chunks +7 lines, -7 lines 0 comments Download
M net/http/http_proxy_client_socket_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_stream_parser_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/fuzzed_socket.h View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M net/socket/fuzzed_socket.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/fuzzed_socket_factory.h View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M net/socket/fuzzed_socket_factory.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M net/socket/socks5_client_socket_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/socks_client_socket_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/udp/fuzzed_datagram_client_socket.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M net/udp/fuzzed_datagram_client_socket.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_data_job_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_fuzzer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/testing/FuzzedDataProvider.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/testing/FuzzedDataProvider.cpp View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (42 generated)
Charlie Harrison
Hi everyone. PTAL at this change. For reference, here is the discussion in platform-architecture-dev: https://groups.google.com/a/chromium.org/forum/#!topic/platform-architecture-dev/L5sBSoBWVFo ...
4 years, 4 months ago (2016-08-17 20:19:21 UTC) #13
esprehn
lgtm for blink https://codereview.chromium.org/2250263003/diff/60001/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp (right): https://codereview.chromium.org/2250263003/diff/60001/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp#newcode17 third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp:17: : TextResourceDecoder(String::fromUTF8(fuzzedData.ConsumeBytesInRange(0, 16)), String::fromUTF8(fuzzedData.ConsumeBytesInRange(0, 16)), FuzzedOption(fuzzedData)) ...
4 years, 4 months ago (2016-08-17 20:42:14 UTC) #14
Lei Zhang
lgtm
4 years, 4 months ago (2016-08-17 20:53:29 UTC) #15
Charlie Harrison
Thanks! https://codereview.chromium.org/2250263003/diff/60001/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp File third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp (right): https://codereview.chromium.org/2250263003/diff/60001/third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp#newcode17 third_party/WebKit/Source/core/html/parser/TextResourceDecoderFuzzer.cpp:17: : TextResourceDecoder(String::fromUTF8(fuzzedData.ConsumeBytesInRange(0, 16)), String::fromUTF8(fuzzedData.ConsumeBytesInRange(0, 16)), FuzzedOption(fuzzedData)) On 2016/08/17 ...
4 years, 4 months ago (2016-08-17 21:22:14 UTC) #18
mmoroz
LGTM
4 years, 4 months ago (2016-08-18 11:17:11 UTC) #21
mmenke
I'm not an eroman, not do I play one on TV, but net/ seems fine. ...
4 years, 4 months ago (2016-08-18 17:08:21 UTC) #23
eroman
lgtm after responding to these comments https://codereview.chromium.org/2250263003/diff/140001/base/test/fuzzed_data_provider.h File base/test/fuzzed_data_provider.h (right): https://codereview.chromium.org/2250263003/diff/140001/base/test/fuzzed_data_provider.h#newcode5 base/test/fuzzed_data_provider.h:5: #ifndef BASE_FUZZED_DATA_PROVIDER_H_ BASE_TEST_.... ...
4 years, 4 months ago (2016-08-18 21:37:11 UTC) #36
Charlie Harrison
https://codereview.chromium.org/2250263003/diff/80001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2250263003/diff/80001/base/BUILD.gn#newcode359 base/BUILD.gn:359: "fuzzed_data_provider.h", On 2016/08/18 17:08:21, mmenke wrote: > Should this ...
4 years, 4 months ago (2016-08-19 18:58:17 UTC) #43
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/2250263003/200001
4 years, 4 months ago (2016-08-19 19:50:46 UTC) #49
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-19 21:44:04 UTC) #51
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 21:46:50 UTC) #53
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f30fc95f50c3568509541ddb7b527fa5ea1fc201
Cr-Commit-Position: refs/heads/master@{#413253}

Powered by Google App Engine
This is Rietveld 408576698