Skip to content

Validate explicitly labeled integer values - #2074

Open
iibaranov-IG wants to merge 1 commit into
OpenLightingProject:masterfrom
iibaranov-IG:fix/1995-labeled-values-valid
Open

iibaranov-IG wants to merge 1 commit into
OpenLightingProject:masterfrom
iibaranov-IG:fix/1995-labeled-values-valid

Conversation

@iibaranov-IG

Copy link
Copy Markdown

Fixes #1995.

IntegerFieldDescriptor::IsValid() now accepts an exact value declared in its label map after checking the configured numeric intervals. Values outside both remain invalid.

The descriptor regression covers an interval member, a labeled value outside the interval, and a nearby undeclared value. BCL also compiled the real descriptor implementation with -Wall -Wextra -Werror and confirmed the regression fails before this change and passes afterward (3 assertions, 0 skipped).

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.

Label fields within integers should be valid without having to be explicitly listed in a range

1 participant