forked from bblanchon/ArduinoJson
Merged MsgPackError and JsonError into DeserializationError.
Return NotSupported if the JSON input contains "\u".
This commit is contained in:
@ -18,8 +18,8 @@ class memstream : public std::istream {
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
DynamicJsonDocument doc;
|
||||
memstream json(data, size);
|
||||
JsonError error = deserializeJson(doc, json);
|
||||
if (error == JsonError::Ok) {
|
||||
DeserializationError error = deserializeJson(doc, json);
|
||||
if (error == DeserializationError::Ok) {
|
||||
JsonVariant variant = doc.as<JsonVariant>();
|
||||
variant.as<std::string>(); // <- serialize to JSON
|
||||
}
|
||||
|
Reference in New Issue
Block a user