// strawberry.conf parsing (root-owned, but must never crash the daemon). #include "strawberry/config.hpp" #include #include #include #include extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { static const std::string path = "/tmp/strawberry-fuzz-conf-" + std::to_string(::getpid()); if (FILE* f = std::fopen(path.c_str(), "wb")) { std::fwrite(data, 1, size, f); std::fclose(f); strawberry::Config config; (void) config.load_from_file(path); } return 0; }