Error when roundtripping BJData #3519
Labels
aspect: binary formats
BSON, CBOR, MessagePack, UBJSON
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
Given the following BJData input
the library can successfully parse it to
However, when then serializing this JSON as BJData, the following exception is raised:
The error was found by OSS-Fuzz, and is unrelated to the latest fixes.
Reproduction steps
Expected vs. actual results
I would also be fine with adding a note to https://json.nlohmann.me/features/binary_formats/bjdata/, but then we also need to adjust https://github.com/nlohmann/json/blob/develop/tests/src/fuzzer-parse_bjdata.cpp#L65
Minimal code example
Error messages
Compiler and operating system
OSS-Fuzz
Library version
develop
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: