* Add chunked_decoder_fuzzer and a seed corpus for multipart_parser_fuzzer
* Apply clang-format to chunked_decoder_fuzzer.cc
* Simplify chunked_decoder_fuzzer and tidy the seed corpora
read_content_chunked() only touches the trailers and headers, which
Request and Response share, so decoding into both ran the same code.
Decode into a Response only. Drop the SIZE_MAX limit as well: fuzz
inputs never get near the 100MB default, so both take the same branches.
Adjust the first byte of the chunked seeds to the new selector, and
remove the seed for SIZE_MAX.
Drop the duplicated number prefixes from the multipart seed names, run
both new corpora from the "all" target, and keep the fuzzer rules in
the order of FUZZERS.
---------
Co-authored-by: Sai Viswas Basetti <saiviswasbasettitw@gmail.com>
Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>
Fuzz Server::handle_file_request through a mount point backed by a temporary directory that holds symlinks escaping the mount root, one of them into a sibling directory sharing its name prefix. Abort if a token stored outside the root appears in a response. The seeds are based on those of #2661.
Move FuzzedStream into fuzzed_stream.h so that both server fuzzers share it, and add FuzzableServer::MarkAsRunning(), without which a server that is not listening writes no file.
Feed the event stream to the parser in chunks and abort if the reported events, ids and retries differ from parsing it in one piece. Also run with a length limit to cover the early-stop path.
Add websocket_fuzzer covering frame reading, UTF-8 and close payload validation, and the upgrade response parser. Add websocket_fuzzer.options to raise max_len above the 64 KiB frame length boundary.
* *Add server fuzzer target and seed corpus
* Add fuzz_test option to Makefile
* Fix#685
* Try to fix Github actions on Ubuntu
* Added ReadTimeoutSSL test
* Comment out `-fsanitize=address`
* Rebase upstream changes
* remove address sanitizer temporarily
* Add separate Makefile for fuzzing
* 1. Remove special char from dictionary
2. Clean fuzzing/Makefile
* Use specific path to avoid accidently linking openssl version brought in by oss-fuzz
* remove addition of flags
* Refactor Makefile
* Add missing newline
* Add fuzztest to github workflow
* Fix
Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>