mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-23 12:50:06 +00:00
11 lines
238 B
C++
11 lines
238 B
C++
|
#include <toml.hpp>
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||
|
{
|
||
|
std::string s(reinterpret_cast<const char *>(data), size);
|
||
|
const auto ref = toml::try_parse_str(s);
|
||
|
return 0;
|
||
|
}
|