-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
CBOR/MessagePack is not read until the end #505
Copy link
Copy link
Closed
Labels
aspect: binary formatsBSON, CBOR, MessagePack, UBJSONBSON, CBOR, MessagePack, UBJSONsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
aspect: binary formatsBSON, CBOR, MessagePack, UBJSONBSON, CBOR, MessagePack, UBJSONsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
When reading a binary vector like
0xf9, 0xff, 0xff, 0x4aand 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.