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

Add a range check to bitset_index. #331

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

plietar
Copy link
Member

@plietar plietar commented Aug 29, 2024

The function assumes the two bitsets are the same size, but was never checking for it. If the user passed in a second bitset that is smaller than the first, it could lead to an out-of-bounds access on the underlying std::vector.

@plietar plietar requested a review from giovannic August 29, 2024 11:27
The function assumes the two bitsets are the same size, but was never
checking for it. If the user passed in a second bitset that is smaller
than the first, it could lead to an out-of-bounds access on the
underlying std::vector.
@plietar plietar force-pushed the bitset_index_bounds_check branch from ffa1f4a to 4913f03 Compare September 2, 2024 10:42
@plietar plietar merged commit 83375fe into dev Sep 4, 2024
4 checks passed
@plietar plietar deleted the bitset_index_bounds_check branch September 4, 2024 12:29
@giovannic giovannic mentioned this pull request Sep 11, 2024
Merged
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