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

RUSTSEC-2024-0357: MemBio::get_buf has undefined behavior with empty buffers #3744

Closed
github-actions bot opened this issue Jul 22, 2024 · 0 comments · Fixed by #3746
Closed

RUSTSEC-2024-0357: MemBio::get_buf has undefined behavior with empty buffers #3744

github-actions bot opened this issue Jul 22, 2024 · 0 comments · Fixed by #3746

Comments

@github-actions
Copy link
Contributor

Details
Package openssl
Version 0.10.64
URL sfackler/rust-openssl#2266
Patched Versions >=0.10.66

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

bnjbvr added a commit that referenced this issue Jul 22, 2024
bnjbvr added a commit that referenced this issue Jul 22, 2024
@bnjbvr bnjbvr closed this as completed in 925c5b2 Jul 22, 2024
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 a pull request may close this issue.

0 participants