#include #include "Admin.hpp" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { Admin& admin = Admin::instance(); auto handler = std::make_shared(&admin); std::string input(reinterpret_cast(data), size); std::stringstream ss(input); std::string line; while (std::getline(ss, line, '\n')) { std::vector lineVector(line.data(), line.data() + line.size()); handler->handleMessage(lineVector); } return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */