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

Unified Diff: net/data/fuzzer_dictionaries/net_http_server_fuzzer.dict

Issue 2649983003: A simple fuzzer for HttpServer, with limited coverage of WebSocket. (Closed)
Patch Set: Rebased, looked like doing it automatically failed Created 3 years, 11 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 | « net/data/fuzzer_data/http_server_requests/websocket.bin ('k') | net/server/http_server_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/fuzzer_dictionaries/net_http_server_fuzzer.dict
diff --git a/net/data/fuzzer_dictionaries/net_http_server_fuzzer.dict b/net/data/fuzzer_dictionaries/net_http_server_fuzzer.dict
new file mode 100644
index 0000000000000000000000000000000000000000..89aea18c4adb2b9e6fb9867dbf816127b30e066d
--- /dev/null
+++ b/net/data/fuzzer_dictionaries/net_http_server_fuzzer.dict
@@ -0,0 +1,51 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Fuzzer dictionary targetting HTTP/1.1 requests, to the extent that
+# HttpServer parses those (not very much).
+
+# Tokens the parser cares about.
+# INPUT_LWS
+" "
+"\x09"
+
+# INPUT_CR
+"\x0D"
+
+# INPUT_LF
+"\x0A"
+
+# INPUT_COLON
+":"
+
+# Methods... The code doesn't actually care much about those
+"GET "
+"HEAD "
+
+# The server really wants one of these.
+"HTTP/1.1"
+
+# Some characters for URLs.
+"/"
+"%"
+"a"
+"?"
+
+# Want this accessible...
+"\x0D\x0A"
+
+# Some stuff for headers
+"Content-Length: 10"
+
+# Things that WebSocket cares about.
+"Connection: upgrade\x0D\x0Asec-websocket-version: 13\x0D\x0Asec-websocket-key: abcd"
+# There is a separate fuzzer for this.
+"sec-websocket-extensions: permessage-deflate"
+
+# String terminator for FuzzedDataProvider::ConsumeRandomLengthString.
+"\\ "
+
+# There is a lot of use of ConsumeUint32InRange clients, like ConsumeBool,
+# so try make it easy to produce lots of inputs for these.
+"\x00\x00\x00\x00"
« no previous file with comments | « net/data/fuzzer_data/http_server_requests/websocket.bin ('k') | net/server/http_server_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698