EVerest / EVerest/cbexigen

Arrays have additional unused grammar

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
69
Forks
36
Avg merge
3h 30m
Merged PRs (30d)
1

Description

### 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 https://github.com/EVerest/cbexigen/issues/83 and fixed in https://github.com/EVerest/cbexigen/pull/86.

### To Reproduce

_No response_

### Anything else?

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.