forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzz: avoid false positives in HCM fuzzer. (envoyproxy#4262)
Previously we were not respecting the encodeHeaders() :status contract or the connection close callbacks. Fixes oss-fuzz issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10025. Risk level: Low Testing: Corpus entries added. Signed-off-by: Harvey Tuch <htuch@google.com>
- Loading branch information
Showing
5 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...r_impl_corpus/clusterfuzz-testcase-minimized-conn_manager_impl_fuzz_test-5638706466652160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
actions { | ||
new_stream { | ||
request_headers { | ||
headers { | ||
key: ":method" | ||
} | ||
headers { | ||
key: "foo" | ||
value: "/" | ||
} | ||
headers { | ||
key: "cookie" | ||
} | ||
headers { | ||
key: "/" | ||
value: "foo.com" | ||
} | ||
headers { | ||
key: "/" | ||
value: "GT" | ||
} | ||
headers { | ||
value: "/" | ||
} | ||
} | ||
} | ||
} | ||
actions { | ||
stream_action { | ||
response { | ||
headers { | ||
} | ||
} | ||
} | ||
} | ||
actions { | ||
} | ||
actions { | ||
} | ||
actions { | ||
} | ||
actions { | ||
} |
53 changes: 53 additions & 0 deletions
53
...r_impl_corpus/clusterfuzz-testcase-minimized-conn_manager_impl_fuzz_test-5679723404328960
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
actions { | ||
} | ||
actions { | ||
stream_action { | ||
} | ||
} | ||
actions { | ||
new_stream { | ||
request_headers { | ||
headers { | ||
key: ":method" | ||
value: "GET" | ||
} | ||
headers { | ||
key: ":path" | ||
value: "/" | ||
} | ||
headers { | ||
key: ":scheme" | ||
value: "GET" | ||
} | ||
headers { | ||
key: ":authority" | ||
value: "foo.com" | ||
} | ||
headers { | ||
value: "nosniff" | ||
} | ||
headers { | ||
key: "GET" | ||
value: "foo=bar" | ||
} | ||
headers { | ||
key: "cookie" | ||
value: "foo2=bar2" | ||
} | ||
} | ||
} | ||
} | ||
actions { | ||
stream_action { | ||
response { | ||
headers { | ||
} | ||
} | ||
} | ||
} | ||
actions { | ||
} | ||
actions { | ||
} | ||
actions { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters