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

fixing issue 2120 #2121

Merged
merged 1 commit into from Feb 8, 2024
Merged

fixing issue 2120 #2121

merged 1 commit into from Feb 8, 2024

Conversation

lemire
Copy link
Member

@lemire lemire commented Feb 8, 2024

Currently, we trust the user to provide us with a correct value of capacity. In particular, capacity must be larger or equal to the length.

In this PR, we check the value of capacity and if it is smaller than the length, we set it to the length.

Fixes #2120

@lemire lemire merged commit 32d072a into master Feb 8, 2024
75 checks passed
@lemire lemire deleted the issue2120 branch February 8, 2024 16:34
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.

When capacity of padded_string_view is given a size smaller than length, padding() is wrapping
1 participant