Add fuzzing of multipart_parser
authorPetr Štetiar <ynezz@true.cz>
Sun, 11 Oct 2020 10:46:43 +0000 (12:46 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 27 Oct 2020 22:03:04 +0000 (23:03 +0100)
commita615818198005732f587c09d43cc7f0540a52043
treeb1d12b98c75e3ba9d399261b701707fc1d933d26
parent6b0615b728ede4290c15526b3ed0151d9d78da91
Add fuzzing of multipart_parser

LibFuzzer is in-process, coverage-guided, evolutionary fuzzing engine.

LibFuzzer is linked with the library under test, and feeds fuzzed inputs to
the library via a specific fuzzing entrypoint (aka "target function"); the
fuzzer then tracks which areas of the code are reached, and generates
mutations on the corpus of input data in order to maximize the code coverage.

Lets use libFuzzer to fuzz multipart_parser for the start.

Ref: https://llvm.org/docs/LibFuzzer.html
Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt
tests/CMakeLists.txt [new file with mode: 0644]
tests/fuzz-multipart-parser/CMakeLists.txt [new file with mode: 0644]
tests/fuzz-multipart-parser/corpus/.keep [new file with mode: 0644]
tests/fuzz-multipart-parser/dict/parser.dict [new file with mode: 0644]
tests/fuzz-multipart-parser/inputs/input1.txt [new file with mode: 0644]
tests/fuzz-multipart-parser/inputs/input2.txt [new file with mode: 0644]
tests/fuzz-multipart-parser/test-fuzz-multipart-parser.c [new file with mode: 0644]