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

strbuf: Extend strbuf_reserve_extra size check #268

Closed
wants to merge 1 commit into from

Conversation

stoeckmann
Copy link
Contributor

Make sure that alignment to BUF_STEP won't overflow if excessively huge amount of memory is requested to be reserved.

Make sure that alignment to BUF_STEP won't overflow if excessively
huge amount of memory is requested to be reserved.

Signed-off-by: Tobias Stoeckmann <[email protected]>
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
shared/strbuf.c 0.00% 0 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
shared/strbuf.c 78.78% <0.00%> (ø)

lucasdemarchi pushed a commit that referenced this pull request Jan 3, 2025
Make sure that alignment to BUF_STEP won't overflow if excessively
huge amount of memory is requested to be reserved.

Signed-off-by: Tobias Stoeckmann <[email protected]>
Link: #268
Signed-off-by: Lucas De Marchi <[email protected]>
@lucasdemarchi
Copy link
Contributor

Applied, thanks.

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