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

per decode length constrains filter issue #391

Open
yorkz1994 opened this issue Dec 27, 2024 · 0 comments
Open

per decode length constrains filter issue #391

yorkz1994 opened this issue Dec 27, 2024 · 0 comments
Labels
area/codec Related to a new or existing ASN.1 codec. area/constraints Related to X.680 constraints for types in rasn. help wanted Extra attention is needed kind/bug Something isn't working

Comments

@yorkz1994
Copy link

when a SIZE constrains is 0..65535, the Size.range function will return 65536, but in the filter of decode*length function, it compares range <= u16::MAX which is 65535.

So the valid size constrain is filtered out.

@XAMPPRocky XAMPPRocky added kind/bug Something isn't working help wanted Extra attention is needed area/constraints Related to X.680 constraints for types in rasn. area/codec Related to a new or existing ASN.1 codec. labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codec Related to a new or existing ASN.1 codec. area/constraints Related to X.680 constraints for types in rasn. help wanted Extra attention is needed kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants