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

Issue 10441027: Stub binary for fuzzing DNS resolver. (Closed)

Created:
8 years, 7 months ago by Deprecated (see juliatuttle)
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, szym
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Stub binary for fuzzing DNS resolver. Initial version doesn't actually read the test case. BUG=130751 TEST=Built locally (including with ASAN) and ran, and it works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140119

Patch Set 1 #

Total comments: 24

Patch Set 2 : Fix szym's comments #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 12

Patch Set 6 : Fix cbentzel's comments #

Patch Set 7 : #

Total comments: 7

Patch Set 8 : Fix cbentzel's comments (and get the scoped_ptr include right) #

Patch Set 9 : Whoa, C++ has *objects* #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #include "base/basictypes.h" #

Total comments: 1

Patch Set 12 : ...it's uint16, not uint16_t. #

Total comments: 1

Patch Set 13 : Put base dependency back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
A net/tools/dns_fuzz_stub/dns_fuzz_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Deprecated (see juliatuttle)
8 years, 7 months ago (2012-05-24 19:24:54 UTC) #1
szym
https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode1 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:1: #include <stdio.h> Add licence. https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode14 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:14: using namespace net; ...
8 years, 7 months ago (2012-05-24 19:41:01 UTC) #2
szym
https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode14 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:14: using namespace net; On 2012/05/24 19:41:02, szym wrote: > ...
8 years, 7 months ago (2012-05-24 19:42:30 UTC) #3
Deprecated (see juliatuttle)
PTAL. https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/1/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode1 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:1: #include <stdio.h> On 2012/05/24 19:41:02, szym wrote: > ...
8 years, 7 months ago (2012-05-24 21:53:35 UTC) #4
cbentzel
http://codereview.chromium.org/10441027/diff/6001/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10441027/diff/6001/net/net.gyp#newcode1692 net/net.gyp:1692: '../base/base.gyp:base', The explicit dependency on base is the same ...
8 years, 7 months ago (2012-05-25 01:53:55 UTC) #5
Deprecated (see juliatuttle)
PTAL. I mocked out the reading code so we can get this going; I'll replace ...
8 years, 6 months ago (2012-05-30 22:23:40 UTC) #6
szym
How do you plan to use this binary while ReadTestCase is a mock? https://chromiumcodereview.appspot.com/10441027/diff/5/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File ...
8 years, 6 months ago (2012-05-30 22:32:13 UTC) #7
cbentzel
On 2012/05/30 22:32:13, szym wrote: > How do you plan to use this binary while ...
8 years, 6 months ago (2012-05-31 00:37:31 UTC) #8
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/10441027/diff/5/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/5/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode30 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:30: bool ReadTestCase(const char* filename, On 2012/05/30 22:32:13, szym wrote: ...
8 years, 6 months ago (2012-05-31 16:30:15 UTC) #9
szym
lgtm except a minor issue https://chromiumcodereview.appspot.com/10441027/diff/10002/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/10002/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode44 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:44: *resp_len = arraysize(resp); This ...
8 years, 6 months ago (2012-05-31 16:46:08 UTC) #10
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/10441027/diff/10002/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/10002/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode44 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:44: *resp_len = arraysize(resp); On 2012/05/31 16:46:11, szym wrote: > ...
8 years, 6 months ago (2012-05-31 16:49:42 UTC) #11
Deprecated (see juliatuttle)
8 years, 6 months ago (2012-05-31 19:04:12 UTC) #12
cbentzel
http://chromiumcodereview.appspot.com/10441027/diff/9003/net/net.gyp File net/net.gyp (right): http://chromiumcodereview.appspot.com/10441027/diff/9003/net/net.gyp#newcode1701 net/net.gyp:1701: '../base/base.gyp:base', Does this need to explicitly depend on base? ...
8 years, 6 months ago (2012-05-31 19:17:09 UTC) #13
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/10441027/diff/9003/net/net.gyp File net/net.gyp (right): https://chromiumcodereview.appspot.com/10441027/diff/9003/net/net.gyp#newcode1701 net/net.gyp:1701: '../base/base.gyp:base', On 2012/05/31 19:17:13, cbentzel wrote: > Does this ...
8 years, 6 months ago (2012-05-31 21:37:19 UTC) #14
szym
https://chromiumcodereview.appspot.com/10441027/diff/9/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/9/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode34 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:34: size_t* resp_len, char** resp_buf) { Consider using std::vector<char>* instead ...
8 years, 6 months ago (2012-05-31 21:43:10 UTC) #15
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/10441027/diff/9/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/9/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode34 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:34: size_t* resp_len, char** resp_buf) { On 2012/05/31 21:43:10, szym ...
8 years, 6 months ago (2012-05-31 22:11:56 UTC) #16
cbentzel
LGTM http://codereview.chromium.org/10441027/diff/7004/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): http://codereview.chromium.org/10441027/diff/7004/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode5 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:5: #include <stdio.h> Do you need stdio.h and stdlib.h ...
8 years, 6 months ago (2012-06-01 13:04:38 UTC) #17
szym
http://codereview.chromium.org/10441027/diff/7004/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): http://codereview.chromium.org/10441027/diff/7004/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode7 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:7: #include <string.h> You don't need <string.h> either, but you ...
8 years, 6 months ago (2012-06-01 14:48:08 UTC) #18
cbentzel
LGTM Please either fill in or remove the BUG=/TEST= lines.
8 years, 6 months ago (2012-06-01 15:45:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10441027/8004
8 years, 6 months ago (2012-06-01 18:08:03 UTC) #20
commit-bot: I haz the power
Try job failure for 10441027-8004 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-01 19:12:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10441027/24001
8 years, 6 months ago (2012-06-01 19:12:43 UTC) #22
szym
The CQ will fail again. Please, fix types. https://chromiumcodereview.appspot.com/10441027/diff/24001/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc File net/tools/dns_fuzz_stub/dns_fuzz_stub.cc (right): https://chromiumcodereview.appspot.com/10441027/diff/24001/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc#newcode24 net/tools/dns_fuzz_stub/dns_fuzz_stub.cc:24: uint16_t* ...
8 years, 6 months ago (2012-06-01 19:15:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10441027/30002
8 years, 6 months ago (2012-06-01 19:20:53 UTC) #24
commit-bot: I haz the power
Try job failure for 10441027-30002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-01 20:03:08 UTC) #25
szym
http://codereview.chromium.org/10441027/diff/30002/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10441027/diff/30002/net/net.gyp#newcode1696 net/net.gyp:1696: 'net', It seems you will need to make the ...
8 years, 6 months ago (2012-06-01 20:08:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10441027/19005
8 years, 6 months ago (2012-06-01 20:55:36 UTC) #27
commit-bot: I haz the power
8 years, 6 months ago (2012-06-01 23:00:17 UTC) #28
Change committed as 140119

Powered by Google App Engine
This is Rietveld 408576698