Made use of libfuzzer

This commit is contained in:
eidheim 2020-08-08 10:52:11 +02:00
commit f6df4cde4e
9 changed files with 107 additions and 13 deletions

View file

@ -0,0 +1,6 @@
#include "utility.hpp"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
SimpleWeb::Percent::decode(std::string(reinterpret_cast<const char *>(data), size));
return 0;
}