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

Arrays have additional unused grammar #91

Open
barsnick opened this issue Nov 29, 2024 · 0 comments
Open

Arrays have additional unused grammar #91

barsnick opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barsnick
Copy link
Contributor

Describe the bug

Arrays whose size has been restricted for memory reasons - especially arrays of unrestricted "unbounded" size - have an additional grammar after their final element, as a hack for missing proper termination grammar.

This hack needs to be replaced by proper grammar.

This means: The event handling after the last element of an array which is restricted in size (vs. the original size in the schema) needs to allow for a further element, even if we don't provide memory to decode it. (This weas hacked by introducing an unused extra element.)

This is a follow-up and related to the loop optimization as reported in #83 and fixed in #86.

To Reproduce

No response

Anything else?

No response

@barsnick barsnick added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant