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

Special values that are reserved in the RFC cause a SystemError exception in decoder #118

Closed
Sekenre opened this issue Jul 22, 2021 · 1 comment

Comments

@Sekenre
Copy link
Collaborator

Sekenre commented Jul 22, 2021

example:

>>> import cbor2
>>> cbor2.loads(b'\xfc')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: <built-in function loads> returned NULL without setting an error

With the pure python module it raises a KeyError exception.

The value corresponds to a reserved Major Type 7 special value.

Sekenre added a commit to Sekenre/cbor2 that referenced this issue Jul 22, 2021
@Sekenre
Copy link
Collaborator Author

Sekenre commented Jul 23, 2021

SystemError also happens when unpacking the payload of Decimals (tags 4 and 5) and it's not a pair.

Sekenre added a commit that referenced this issue Jul 23, 2021
@Sekenre Sekenre closed this as completed Jul 23, 2021
vamega pushed a commit to vamega/cbor2 that referenced this issue Nov 15, 2023
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