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

Closed
github-actions bot opened this issue Aug 3, 2024 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Aug 3, 2024

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.

@github-actions github-actions bot closed this as completed Aug 3, 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

No branches or pull requests

0 participants