You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse error at byte 2: syntax error while parsing CBOR string: expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x01
Description
I have the following CBOR data: 0xA2, 0x01, 0x02, 0x03, 0x26
I try to decode this, using this code:
The code fails with this exception:
However in https://cbor.me/ this data decodes without issues.
This form of maps is used in Fido2, so I consider it valid (check at https://www.w3.org/TR/webauthn-1/#conforming-all-classes, searching for "Example 2).
Reproduction steps
Take the above line so of code and compile it.
Expected vs. actual results
The library is not able to decode the given byte stream - I consider the data as valid CBOR, so it should be possible to decode it.
Minimal code example
No response
Error messages
No response
Compiler and operating system
PlatformIO, GCC
Library version
3.11.03
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: