Skip to content

Commit 50032ba

Browse files
authored
Fix soundness hole in Ref::into_ref and into_mut (#721) (#726)
This commit implements the fix for #716 which will be released as a new version in version trains 0.2, 0.3, 0.4, 0.5, 0.6, and 0.7. See #716 for a description of the soundness hole and an explanation of why this fix is chosen. Unfortunately, due to dtolnay/trybuild#241, there is no way for us to write a UI test that will detect a failure post-monomorphization, which is when the code implemented in this change is designed to fail. I have manually verified that unsound uses of these APIs now fail to compile. Release 0.3.2.
1 parent 2c37bbe commit 50032ba

File tree

4 files changed

+299
-75
lines changed

4 files changed

+299
-75
lines changed

Cargo.toml.crates-io renamed to Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[package]
88
edition = "2018"
99
name = "zerocopy"
10-
version = "0.3.1"
10+
version = "0.3.2"
1111
authors = ["Joshua Liebow-Feeser <joshlf@google.com>"]
1212
description = "Utilities for zero-copy parsing and serialization"
1313
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)