Skip to content

reject noninteger array dimensions - #171

Open
kisnner26 wants to merge 1 commit into
fox-it:mainfrom
kisnner26:fix/noninteger-array-dimensions
Open

kisnner26 wants to merge 1 commit into
fox-it:mainfrom
kisnner26:fix/noninteger-array-dimensions

Conversation

@kisnner26

Copy link
Copy Markdown

fixes #163.

array dimensions currently suppress expression evaluation errors, so a constant containing text becomes a dynamic array size and fails only when reading data. propagate integer conversion failures as parser errors while preserving unresolved field expressions.

adds 12 regression cases covering invalid string/bytes constants, integer constants (including zero), and field-dependent lengths in compiled and interpreted mode. the six invalid-constant cases fail before the change.

validation: 121 parser/expression tests pass; ruff 0.13.1 lint and formatting, python 3.10 compatibility check, and git diff --check pass.

This branch has not been deployed

No deployments
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.

Add validation for array expressions

1 participant