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

Backport/FIX: Access Violation in OCB #3924

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented Feb 27, 2024

This is a back port of #3814, in response to the reminder by @ni4. Sorry, again, for that.

Anyway, it turns out, that this bug was actually exposed by this patch during the 3.x development. It reduced the allowed update granularity of the OCB mode, making it much easier to provoke a bogus state of OCB.

Albeit more contrived, its still possible to create an example to hit the access violation in 2.19.4.

This caused an access violation when re-allocating the
m_L vector (due to a lazy .push_back()) and invalidating
local references in the process.

See also randombit#3812 for details.
@reneme reneme added the bug label Feb 27, 2024
@reneme reneme requested a review from randombit February 27, 2024 14:57
@reneme reneme self-assigned this Feb 27, 2024
Copy link
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

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

Nice thank you for following up on this

@reneme reneme merged commit 802e26a into randombit:release-2 Feb 27, 2024
20 of 21 checks passed
@reneme reneme deleted the backport/ocb_fix branch February 27, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants