Fix fuzzers build

This commit is contained in:
lganzzzo 2021-10-26 03:01:22 +03:00
parent 995658834e
commit e65a686982

View File

@ -17,7 +17,7 @@ class Test1 : public oatpp::DTO {
};
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
oatpp::String input(reinterpret_cast<const char*>(data), size, true);
oatpp::String input(reinterpret_cast<const char*>(data), size);
oatpp::parser::json::mapping::ObjectMapper mapper;
try {
mapper.readFromString<oatpp::Object<Test1>>(input);