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 out-of-bounds array access in hFlipBit. #551

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Conversation

jorisdral
Copy link
Collaborator

Resolves #549

Copy link
Collaborator

@mheinzel mheinzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, but I think one small mistake snuck in.

test/Test/FS.hs Outdated Show resolved Hide resolved
We were not calculating the maximum bit offset correctly, so we were not
generating bit offsets towards the end of the byte string.
A use of `setByteArray`was writing outside of the byte array bounds. This is now
fixed.
@jorisdral
Copy link
Collaborator Author

I've turned on auto-merge, so once this is approved it should move into the merge queue automatically

@jorisdral jorisdral added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit 7841b58 Jan 28, 2025
27 checks passed
@jorisdral jorisdral deleted the jdral/issue-549 branch January 28, 2025 11:18
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.

[BUG] "Access violation" errors in lsm-tree-test
3 participants