Skip to content

Conversation

@larsbarring
Copy link
Contributor

Closes issue #132.

  • New lexer rules to throw an error if a NaN or Inf[inity] (case insensitive) appears in the string.
  • Updated decodeInput function in udunits2.c. Without this, an initial NaN or Inf will be captured as a numeric before handing over to the lexer.

@larsbarring
Copy link
Contributor Author

Simple bash script and C code for testing is available here, common to PR #134 (issue #128) , PR #135 (issue #129, and PR #136 (issue #132).

@larsbarring larsbarring changed the title WIP: Disallow NaN and Inf in unit strings Disallow NaN and Inf in unit strings Nov 11, 2025
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.

1 participant