🚑 fix for #516 and #518

We should compare the binary serializations rather than the JSON values
themselves. This fix was already done for CBOR and apparently forgotten
for MessagePack.
parent 2d474b52
...@@ -41,8 +41,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) ...@@ -41,8 +41,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
// parse serialization // parse serialization
json j2 = json::from_msgpack(vec2); json j2 = json::from_msgpack(vec2);
// deserializations must match // serializations must match
assert(j1 == j2); assert(json::to_msgpack(j2) == vec2);
} }
catch (const json::parse_error&) catch (const json::parse_error&)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment