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

fix normalise_string to prevent issues when lexer->buflen == 0 #4359

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

dipinhora
Copy link
Contributor

This was flagged by either the memory sanitizer or the undefined behavior sanitizer as an issue.

This commit changes the datatype of i to be ssize_t so that lexer->buflen - 1 becomes less than 0 when lexer->buflen == 0.

This was flagged by either the memory sanitizer or the undefined
behavior sanitizer as an issue.

This commit changes the datatype of `i` to be `ssize_t` so that
`lexer->buflen - 1` becomes less than 0 when `lexer->buflen` == 0.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Jul 6, 2023
@jemc
Copy link
Member

jemc commented Jul 7, 2023

The CI failure is unrelated and will be fixed by PR #4358.

@jemc jemc merged commit 8b72fa5 into ponylang:main Jul 7, 2023
19 of 20 checks passed
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Jul 7, 2023
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.

3 participants