2016-04-13 08:07:14 -04:00
|
|
|
#include "util/string_util.hpp"
|
|
|
|
|
|
|
|
#include "util.hpp"
|
|
|
|
|
|
|
|
#include <iterator>
|
|
|
|
#include <string>
|
|
|
|
|
2022-10-03 15:43:51 -04:00
|
|
|
using osrm::util::EscapeJSONString;
|
2016-04-13 08:07:14 -04:00
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const unsigned char *data, unsigned long size)
|
|
|
|
{
|
|
|
|
const std::string in(reinterpret_cast<const char *>(data), size);
|
|
|
|
|
2022-10-03 15:43:51 -04:00
|
|
|
std::string escaped;
|
|
|
|
EscapeJSONString(in, escaped);
|
2016-04-13 08:07:14 -04:00
|
|
|
escape(escaped.data());
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|