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

Issue 2308443002: Make FuzzedDataProvider vend std::strings (Closed)

Created:
4 years, 3 months ago by Charlie Harrison
Modified:
4 years, 2 months ago
Reviewers:
Lei Zhang, haraken, mmenke
CC:
chromium-reviews, blink-reviews, cbentzel+watch_chromium.org, kcc2, aizatsky, inferno
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FuzzedDataProvider vend std::strings This patch also updates all consumers to use the new API. This will help ASAN catch a broader class of problems in terms of accessing data outside of the returned buffer. BUG=639827 Committed: https://crrev.com/987cf79c0d88104a3d491760b1b3b3294bb1d80a Cr-Commit-Position: refs/heads/master@{#426310}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : include <algorithm> #

Patch Set 4 : no longer header-only #

Total comments: 2

Patch Set 5 : thestig review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -42 lines) Patch
M base/test/fuzzed_data_provider.h View 1 2 3 4 2 chunks +8 lines, -9 lines 0 comments Download
D base/test/fuzzed_data_provider.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M net/cert/internal/verify_name_match_fuzzer.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/cert/internal/verify_name_match_verifynameinsubtree_fuzzer.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/socket/fuzzed_socket.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/udp/fuzzed_datagram_client_socket.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_data_job_fuzzer.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M net/websockets/websocket_deflate_stream_fuzzer.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/websockets/websocket_frame_parser_fuzzer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/FuzzedDataProvider.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/sfntly/fuzzers/subset_font_fuzzer.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
Charlie Harrison
mmenke, would you take a first pass at this? Low priority.
4 years, 3 months ago (2016-09-02 13:19:46 UTC) #12
Charlie Harrison
On 2016/09/02 13:19:46, Charlie Harrison wrote: > mmenke, would you take a first pass at ...
4 years, 3 months ago (2016-09-02 20:04:46 UTC) #15
Charlie Harrison
PTAL, this implementation is no longer header-only, per discussion on platform-architecture-dev.
4 years, 2 months ago (2016-10-19 17:01:57 UTC) #19
mmenke
LGTM!
4 years, 2 months ago (2016-10-19 17:44:49 UTC) #21
Charlie Harrison
Thanks! +thestig for base and third_party. I got a presubmit about changes to sfntly needing ...
4 years, 2 months ago (2016-10-19 17:46:30 UTC) #23
Charlie Harrison
Oh, and +haraken for the small change to blink.
4 years, 2 months ago (2016-10-19 17:48:18 UTC) #25
Lei Zhang
lgtm Can you re-upload? base/test/fuzzed_data_provider.cc strangely shows up as 'D' when it should be 'M'. ...
4 years, 2 months ago (2016-10-19 17:49:49 UTC) #26
haraken
WebKit LGTM
4 years, 2 months ago (2016-10-19 18:00:15 UTC) #27
Charlie Harrison
Thanks all! thestig: looks like we're still getting a "D" after another git cl upload ...
4 years, 2 months ago (2016-10-19 18:00:56 UTC) #28
Charlie Harrison
cc mmoroz FYI as this could regress performance slightly for these fuzzers. I will try ...
4 years, 2 months ago (2016-10-19 18:35:27 UTC) #29
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/2308443002/80001
4 years, 2 months ago (2016-10-19 18:36:10 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/164204)
4 years, 2 months ago (2016-10-19 20:34:16 UTC) #34
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/2308443002/80001
4 years, 2 months ago (2016-10-19 20:35:37 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-19 22:37:37 UTC) #39
mmoroz
On 2016/10/19 18:35:27, Charlie Harrison wrote: > cc mmoroz FYI as this could regress performance ...
4 years, 2 months ago (2016-10-20 09:03:20 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:12:22 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/987cf79c0d88104a3d491760b1b3b3294bb1d80a
Cr-Commit-Position: refs/heads/master@{#426310}

Powered by Google App Engine
This is Rietveld 408576698