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

[parser] Don't crash for files that don't end in newlines #3981

Merged
merged 1 commit into from
May 15, 2024

Conversation

Peter0x44
Copy link
Contributor

The parser assumes all lines end in newlines, but sometimes this isn't true. Check for a null terminator along with '\n' when stripping leading spaces.

The parser assumes all lines end in newlines, but sometimes this isn't
true. Check for a null terminator along with '\n' when stripping leading
spaces.
@Peter0x44 Peter0x44 changed the title parser: Don't crash for files that don't end in newlines [parser] Don't crash for files that don't end in newlines May 14, 2024
@raysan5 raysan5 merged commit bf5eecc into raysan5:master May 15, 2024
2 checks passed
@raysan5
Copy link
Owner

raysan5 commented May 15, 2024

@Peter0x44 thanks for the review!

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.

None yet

2 participants