You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
408 B

#include "cmake.hpp"
#include <glib.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
const gchar *end;
if(!g_utf8_validate(reinterpret_cast<const char *>(data), size, &end))
return 0;
std::map<std::string, std::list<std::string>> variables;
CMake::parse_file(std::string(reinterpret_cast<const char *>(data), size), variables, [](CMake::Function) {});
return 0;
}