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

Issue 1854813004: Add SOCKS4 and SOCKS5 fuzzers. (Closed)

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

Description

Add SOCKS4 and SOCKS5 fuzzers. Introduces a FuzzedSocket class, which takes a seed and produces random read/write results from it. Also removes log spam from the SOCKS4 code. BUG=599525 Committed: https://crrev.com/99b5717592526361111ebf4558d1a22327c3ccde Cr-Commit-Position: refs/heads/master@{#387413}

Patch Set 1 #

Patch Set 2 : Socks fuzzer #

Patch Set 3 : Rework socket stuff #

Patch Set 4 : Rename files, update comments #

Patch Set 5 : Return OK on read close, remove log spam #

Total comments: 22

Patch Set 6 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -7 lines) Patch
M net/BUILD.gn View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
A net/socket/fuzzed_socket.h View 1 2 3 4 5 1 chunk +115 lines, -0 lines 0 comments Download
A net/socket/fuzzed_socket.cc View 1 2 3 4 5 1 chunk +252 lines, -0 lines 0 comments Download
A net/socket/socks5_client_socket_fuzzer.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M net/socket/socks_client_socket.cc View 1 4 2 chunks +7 lines, -7 lines 0 comments Download
A net/socket/socks_client_socket_fuzzer.cc View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
mmenke
Eric: WDYT? The HttpStreamParser can easily be rewritten to use FuzzedSocket as well. I considered ...
4 years, 8 months ago (2016-04-14 15:02:28 UTC) #5
eroman
Nice! I agree this is a very useful primitive to have, and that separate unit-testing ...
4 years, 8 months ago (2016-04-14 17:56:28 UTC) #6
mmenke
I did ignore two of your comments: * The one on WasEverUsed - you're right, ...
4 years, 8 months ago (2016-04-14 19:01:51 UTC) #8
eroman
lgtm https://codereview.chromium.org/1854813004/diff/100001/net/socket/fuzzed_socket.cc File net/socket/fuzzed_socket.cc (right): https://codereview.chromium.org/1854813004/diff/100001/net/socket/fuzzed_socket.cc#newcode37 net/socket/fuzzed_socket.cc:37: DCHECK(!read_pending_); On 2016/04/14 19:01:51, mmenke wrote: > On ...
4 years, 8 months ago (2016-04-14 19:32:39 UTC) #9
mmenke
Thanks! On 2016/04/14 19:32:39, eroman wrote: > lgtm > > https://codereview.chromium.org/1854813004/diff/100001/net/socket/fuzzed_socket.cc > File net/socket/fuzzed_socket.cc (right): ...
4 years, 8 months ago (2016-04-14 19:37:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854813004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854813004/140001
4 years, 8 months ago (2016-04-14 19:37:35 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 8 months ago (2016-04-14 20:44:45 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 20:46:14 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/99b5717592526361111ebf4558d1a22327c3ccde
Cr-Commit-Position: refs/heads/master@{#387413}

Powered by Google App Engine
This is Rietveld 408576698