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

Unified Diff: net/tools/dns_fuzz_stub/dns_fuzz_stub.cc

Issue 10527004: Make dns_fuzz_stub read and parse JSON test case (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
diff --git a/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc b/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
index 4dcae720f85de3e23f00feef4454e530a0a637db..85b4f8e6909c08ba6a3f88f6bfc915465cc45b3d 100644
--- a/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
+++ b/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
@@ -162,6 +162,11 @@ int main(int argc, char** argv) {
<< " qtype=" << qtype;
LOG(INFO) << "Response: " << resp_buf.size() << " bytes";
+ if (strcmp("pleasecrash", qname_dotted.c_str()) == 0) {
+ int *p = NULL;
+ *p = 0;
+ }
+
std::string qname;
if (!net::DNSDomainFromDot(qname_dotted, &qname)) {
LOG(ERROR) << "DNSDomainFromDot(" << qname_dotted << ") failed.";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698