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

zcbor.py: Fix range_checks for 'OTHER' type #375

Merged

Conversation

oyvindronningstad
Copy link
Collaborator

range checks were always added for 'OTHER' types, but this is not necessary if the referenced type creates its own function, since the checks are added there.

This was causing a bug because the 'OTHER' type was unable to resolve the access path correctly.

Fixes #349

range checks were always added for 'OTHER' types, but this is not
necessary if the referenced type creates its own function, since the
checks are added there.

This was causing a bug because the 'OTHER' type was unable to resolve
the access path correctly.

Signed-off-by: Øyvind Rønningstad <[email protected]>
@oyvindronningstad oyvindronningstad merged commit 038132a into NordicSemiconductor:main Dec 20, 2023
17 checks passed
@oyvindronningstad oyvindronningstad deleted the bstr-size-bug branch December 20, 2023 15:15
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

Successfully merging this pull request may close these issues.

Can not use .size n on bytestrings
2 participants