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

Issue 2469813002: Add a URLRequest FTP fuzzer. (Closed)

Created:
4 years, 1 month ago by mmenke
Modified:
4 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, fuzzing_chromium.org, Paweł Hajdan Jr.
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a URLRequest FTP fuzzer. Also add a new method to FuzzedDataProvider to provide a random length string, with a max length. Generating the string this way allows for the fuzzer to mutate it more easily than the previous pattern of picking length from the end of input and then choosing that many characters from the start of the input. FuzzedSockets are switched to use the new method. It will cause them to need to rebuild their corpuses, but should result in faster convergence, longer term. BUG=660869 NOPRESUBMIT=true Committed: https://crrev.com/a7da0714bb1e387b30298047a9fa81c0ed2a2d13 Cr-Commit-Position: refs/heads/master@{#433652}

Patch Set 1 #

Patch Set 2 : Minor fixes #

Total comments: 5

Patch Set 3 : Response to comments #

Patch Set 4 : Minor comment update #

Patch Set 5 : Add type suffixes #

Total comments: 2

Patch Set 6 : Response to comments #

Patch Set 7 : Fix merge of net/BUILD.gn #

Total comments: 4

Patch Set 8 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -13 lines) Patch
M base/test/fuzzed_data_provider.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M base/test/fuzzed_data_provider.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
A net/data/fuzzer_data/net_url_request_ftp_fuzzer/epsv-mode.txt View Binary file 0 comments Download
A net/data/fuzzer_data/net_url_request_ftp_fuzzer/pasv-mode.txt View Binary file 0 comments Download
A net/data/fuzzer_dictionaries/net_url_request_ftp_fuzzer.dict View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
M net/socket/fuzzed_socket.cc View 1 2 chunks +6 lines, -10 lines 0 comments Download
A net/url_request/url_request_ftp_fuzzer.cc View 1 1 chunk +89 lines, -0 lines 0 comments Download
M net/url_request/url_request_fuzzer.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 48 (26 generated)
mmenke
[+eroman]: Please review everything. [+csharrison]: Please review FuzzedDataProvider. Not sure a test corpus is really ...
4 years, 1 month ago (2016-11-01 18:35:43 UTC) #3
mmenke
Oh, and I did compare the new FuzzedSocket code against the old one, on the ...
4 years, 1 month ago (2016-11-01 18:37:48 UTC) #5
Charlie Harrison
https://codereview.chromium.org/2469813002/diff/60001/base/test/fuzzed_data_provider.h File base/test/fuzzed_data_provider.h (right): https://codereview.chromium.org/2469813002/diff/60001/base/test/fuzzed_data_provider.h#newcode37 base/test/fuzzed_data_provider.h:37: // input data, returns what remains of the input. ...
4 years, 1 month ago (2016-11-01 19:02:06 UTC) #6
mmenke
Thanks for the feedback! https://codereview.chromium.org/2469813002/diff/60001/base/test/fuzzed_data_provider.h File base/test/fuzzed_data_provider.h (right): https://codereview.chromium.org/2469813002/diff/60001/base/test/fuzzed_data_provider.h#newcode37 base/test/fuzzed_data_provider.h:37: // input data, returns what ...
4 years, 1 month ago (2016-11-01 19:14:29 UTC) #7
Charlie Harrison
fuzzed_data_provider lgtm. I don't think we need to expose those implementation details in the header, ...
4 years, 1 month ago (2016-11-01 19:16:52 UTC) #8
eroman
LGTM. Typo in the CL description: > than the previous patter of pick https://codereview.chromium.org/2469813002/diff/110001/base/test/fuzzed_data_provider.cc File ...
4 years, 1 month ago (2016-11-14 21:02:20 UTC) #9
mmenke
On 2016/11/14 21:02:20, eroman (slow) wrote: > Typo in the CL description: > > > ...
4 years, 1 month ago (2016-11-14 21:13:12 UTC) #12
mmenke
phajdan.jr: Please review base/test/fuzzed_data_provider.*. Would use thestig, as he's reviewed this code before, but his ...
4 years, 1 month ago (2016-11-14 21:18:58 UTC) #17
Paweł Hajdan Jr.
https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc File base/test/fuzzed_data_provider.cc (right): https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc#newcode58 base/test/fuzzed_data_provider.cc:58: // Reads bytes from start of |remaining_data_|. Maps "\\" ...
4 years, 1 month ago (2016-11-15 13:38:50 UTC) #24
mmenke
https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc File base/test/fuzzed_data_provider.cc (right): https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc#newcode58 base/test/fuzzed_data_provider.cc:58: // Reads bytes from start of |remaining_data_|. Maps "\\" ...
4 years, 1 month ago (2016-11-15 13:43:48 UTC) #25
mmenke
https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc File base/test/fuzzed_data_provider.cc (right): https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc#newcode58 base/test/fuzzed_data_provider.cc:58: // Reads bytes from start of |remaining_data_|. Maps "\\" ...
4 years, 1 month ago (2016-11-15 13:46:59 UTC) #26
mmenke
https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc File base/test/fuzzed_data_provider.cc (right): https://codereview.chromium.org/2469813002/diff/150001/base/test/fuzzed_data_provider.cc#newcode58 base/test/fuzzed_data_provider.cc:58: // Reads bytes from start of |remaining_data_|. Maps "\\" ...
4 years, 1 month ago (2016-11-15 13:55:33 UTC) #27
Paweł Hajdan Jr.
LGTM
4 years ago (2016-11-21 17:21:42 UTC) #28
mmenke
On 2016/11/21 17:21:42, Paweł Hajdan Jr. wrote: > LGTM Thanks!
4 years ago (2016-11-21 17:22:31 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/2469813002/150001
4 years ago (2016-11-21 17:23:10 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/309540)
4 years ago (2016-11-21 17:31:50 UTC) #34
mmenke
It's complainint about windows line endings in the fuzzer input files (Which FTP requires). Going ...
4 years ago (2016-11-21 17:37:58 UTC) #35
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/2469813002/150001
4 years ago (2016-11-21 17:40:10 UTC) #38
commit-bot: I haz the power
Failed to apply patch for net/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-21 18:33:47 UTC) #40
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/2469813002/170001
4 years ago (2016-11-21 19:58:20 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years ago (2016-11-21 21:13:06 UTC) #46
commit-bot: I haz the power
4 years ago (2016-11-21 21:16:29 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a7da0714bb1e387b30298047a9fa81c0ed2a2d13
Cr-Commit-Position: refs/heads/master@{#433652}

Powered by Google App Engine
This is Rietveld 408576698