CBOR/MessagePack is not read until the end #505
Labels
aspect: binary formats
BSON, CBOR, MessagePack, UBJSON
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
When reading a binary vector like
0xf9, 0xff, 0xff, 0x4a
and interpret it as CBOR, the first three bytes are a half-precision floating-point number (NaN, see #504). The parser will return this number and won't read the last byte.Example program:
I would like to discuss how to cope with such a situation:
Related to #477 #367.
The text was updated successfully, but these errors were encountered: