Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-well-formed CBOR indefinite length strings allowed #10

Open
laurencelundblade opened this issue Jul 29, 2019 · 0 comments
Open

Non-well-formed CBOR indefinite length strings allowed #10

laurencelundblade opened this issue Jul 29, 2019 · 0 comments

Comments

@laurencelundblade
Copy link

The CBOR
5f 5f 41 00 ff ff
decodes to
(_ h'00')

It should error out per this text:

If any item between the indefinite-length string indicator
(0b010_11111 or 0b011_11111) and the "break" stop code is not a
definite-length string item of the same major type, the string is not
well-formed.

My decoder had an issue with this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant