From d0c4af0e266e6a86ee5bd644da7d222fe56b22da Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 6 Dec 2022 08:26:59 +1100 Subject: [PATCH 1/2] Add newline after docs heading As is customary add a newline between rustdoc heading and content. Done so that the code is identical to other released code (during backport the space was added). --- src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context.rs b/src/context.rs index 618ee1d..10a2210 100644 --- a/src/context.rs +++ b/src/context.rs @@ -311,6 +311,7 @@ unsafe impl<'buf> Context for AllPreallocated<'buf> { /// memory that must outlive `'a` /// /// # Safety +/// /// This trait is used internally to gate which context markers can safely /// be used with the `preallocated_gen_new` function. Do not implement it /// on your own structures. From 494b07a415bb3d1a11adbbb82f8f7e31cb4964dc Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 6 Dec 2022 08:28:13 +1100 Subject: [PATCH 2/2] Add changelog entry Recently we found and fixed an unsoundness issue in the `preallocated_gen_new` function. As we have yet to release 0.25.0 we can just update the changelog to reflect the newly merged fix. --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1ac1c0..a2054d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ -# 0.25.0 - 2022-11-22 +# 0.25.0 - 2022-12-07 +* [Fix soundness issue with `preallocated_gen_new`](https://github.com/rust-bitcoin/rust-secp256k1/pull/548) * Use type system to [improve safety](https://github.com/rust-bitcoin/rust-secp256k1/pull/483). * [Change secp256k1-sys symbol names to 0_6_1](https://github.com/rust-bitcoin/rust-secp256k1/pull/490). * [Introduce `rustfmt`](https://github.com/rust-bitcoin/rust-secp256k1/pull/499) to the codebase.