Binary reader for BJData creates incorrect SAX events #3503
Labels
aspect: binary formats
BSON, CBOR, MessagePack, UBJSON
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
The BJData reader seem to open an object with fixed size of 3 which is never closed, yielding a problem in the SAX parser. I fuzzed this branch (together with the assertions from #3498) and got the following failing input: crash2.bjdata.zip
This generates the following SAX events:
Again, for line
we need to check
3
hard-coded?sax->end_object()
call?Originally posted by @nlohmann in #3502 (comment)
The text was updated successfully, but these errors were encountered: