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: prevent size_t-max length string allocation #276

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

hayt
Copy link
Contributor

@hayt hayt commented Sep 22, 2024

prevent an issue, where a string was created with size_t(0)-1 length.

When creating underlines for error output, the current column sometimes had cases where it was set to 0 caused an underflow.

Solves Issue #275

prevent an issue, where a string was created with size_t(0)-1 length.

When creating underlines for error output, the current column sometimes had cases
where it was set to 0 caused an underflow.
@ToruNiina ToruNiina merged commit 9cda72d into ToruNiina:main Sep 23, 2024
160 checks passed
@ToruNiina
Copy link
Owner

thank you!

github-actions bot pushed a commit that referenced this pull request Sep 23, 2024
fix: prevent size_t-max length string allocation 9cda72d
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.

2 participants