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 #349

Closed
github-actions bot opened this issue Sep 29, 2024 · 0 comments · Fixed by #351
Closed

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

github-actions bot opened this issue Sep 29, 2024 · 0 comments · Fixed by #351

Comments

@github-actions
Copy link

MemBio::get_buf has undefined behavior with empty buffers

Details
Package openssl
Version 0.10.64
URL sfackler/rust-openssl#2266
Date 2024-07-21
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.

See advisory page for additional details.

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