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

Issue 1919013003: Add fuzzer to test Fuzz URLRequestDataJob (Closed)

Created:
4 years, 8 months ago by Charlie Harrison
Modified:
4 years, 7 months ago
Reviewers:
eroman, mmenke
CC:
cbentzel+watch_chromium.org, chromium-reviews, mmenke, Oliver Chang
Base URL:
https://chromium.googlesource.com/chromium/src.git@url_request_fuzzer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add fuzzer to test Fuzz URLRequestDataJob BUG=602460 Committed: https://crrev.com/aa314dc5eead1a69177d91b70018b93535dbfe20 Cr-Commit-Position: refs/heads/master@{#390734}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Encapsulated logic in a singleton class. Rebased / updated for FuzzedDataProvider. #

Total comments: 6

Patch Set 3 : self review #

Total comments: 11

Patch Set 4 : Use URLRequest::Delegate #

Total comments: 12

Patch Set 5 : use vector<char> instead of constant size array #

Patch Set 6 : Rebased on dependent patch and simplified #

Patch Set 7 : another rebase #

Patch Set 8 : rebase on #390645 #

Total comments: 1

Patch Set 9 : remove NET_EXPORT_PRIVATE #

Patch Set 10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -0 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M net/base/fuzzed_data_provider.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A net/url_request/url_request_data_job_fuzzer.cc View 1 2 3 4 5 1 chunk +171 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
Charlie Harrison
eroman@, PTAL? Can you confirm that the static initialization trick is okay here? Without them ...
4 years, 8 months ago (2016-04-25 21:25:25 UTC) #2
eroman
https://codereview.chromium.org/1919013003/diff/1/net/url_request/url_request_data_job_fuzzer.cc File net/url_request/url_request_data_job_fuzzer.cc (right): https://codereview.chromium.org/1919013003/diff/1/net/url_request/url_request_data_job_fuzzer.cc#newcode20 net/url_request/url_request_data_job_fuzzer.cc:20: std::string GenerateRandomRange(const char* bytes, size_t size) { Please document. ...
4 years, 8 months ago (2016-04-25 23:51:31 UTC) #3
Charlie Harrison
I've updated the test to use the Singleton pattern, and tried to simplify it a ...
4 years, 8 months ago (2016-04-26 12:58:40 UTC) #4
eroman
https://codereview.chromium.org/1919013003/diff/1/net/url_request/url_request_data_job_fuzzer.cc File net/url_request/url_request_data_job_fuzzer.cc (right): https://codereview.chromium.org/1919013003/diff/1/net/url_request/url_request_data_job_fuzzer.cc#newcode20 net/url_request/url_request_data_job_fuzzer.cc:20: std::string GenerateRandomRange(const char* bytes, size_t size) { On 2016/04/26 ...
4 years, 8 months ago (2016-04-27 00:43:02 UTC) #5
Charlie Harrison
PTAL. This is a little more complex now that the class is a URLRequest::Delegate. https://codereview.chromium.org/1919013003/diff/1/net/url_request/url_request_data_job_fuzzer.cc ...
4 years, 7 months ago (2016-04-27 17:39:55 UTC) #6
eroman
lgtm https://codereview.chromium.org/1919013003/diff/60001/net/url_request/url_request_data_job_fuzzer.cc File net/url_request/url_request_data_job_fuzzer.cc (right): https://codereview.chromium.org/1919013003/diff/60001/net/url_request/url_request_data_job_fuzzer.cc#newcode19 net/url_request/url_request_data_job_fuzzer.cc:19: const size_t kMaxLengthForFuzzedData = 512; Can you remove ...
4 years, 7 months ago (2016-04-28 00:38:24 UTC) #7
mmenke
[+ochang]: New fuzzer, FYI.
4 years, 7 months ago (2016-04-28 16:14:04 UTC) #9
Charlie Harrison
https://codereview.chromium.org/1919013003/diff/60001/net/url_request/url_request_data_job_fuzzer.cc File net/url_request/url_request_data_job_fuzzer.cc (right): https://codereview.chromium.org/1919013003/diff/60001/net/url_request/url_request_data_job_fuzzer.cc#newcode19 net/url_request/url_request_data_job_fuzzer.cc:19: const size_t kMaxLengthForFuzzedData = 512; On 2016/04/28 00:38:24, eroman ...
4 years, 7 months ago (2016-04-29 14:24:17 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919013003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919013003/120001
4 years, 7 months ago (2016-04-29 14:24:37 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/62693) win_chromium_x64_rel_ng on ...
4 years, 7 months ago (2016-04-29 14:29:21 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919013003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919013003/140001
4 years, 7 months ago (2016-04-29 14:42:00 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/14527)
4 years, 7 months ago (2016-04-29 15:47:19 UTC) #18
Charlie Harrison
eroman@, mmenke@ can I have a hand parsing the win compile errors? I've not seen ...
4 years, 7 months ago (2016-04-29 17:03:13 UTC) #19
eroman
Try removing your latest changes to url_request_test_util.h which marked things as NET_EXPORT_PRIVATE. url_request_fuzzer.cc already makes ...
4 years, 7 months ago (2016-04-29 17:22:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919013003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919013003/180001
4 years, 7 months ago (2016-04-29 20:04:38 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-04-29 20:15:47 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:28:16 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/aa314dc5eead1a69177d91b70018b93535dbfe20
Cr-Commit-Position: refs/heads/master@{#390734}

Powered by Google App Engine
This is Rietveld 408576698