From 7bcc303d0e20aa4d68173c475cac0d4254dbe1b4 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Mon, 29 Jun 2026 16:08:32 +0300 Subject: [PATCH 1/2] inout: fix safety pre-conditions list in `InOutBufReserved::from_raw` docs --- inout/src/reserved.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/inout/src/reserved.rs b/inout/src/reserved.rs index ad3d06d3..6982c4f9 100644 --- a/inout/src/reserved.rs +++ b/inout/src/reserved.rs @@ -52,6 +52,7 @@ impl InOutBufReserved<'_, '_, T> { /// must be valid for both reads and writes for `out_len * mem::size_of::()` /// many bytes. /// - `in_ptr` and `out_ptr` must be either equal or non-overlapping. + /// - `in_len` must be less than or equal to `out_len` (i.e. `in_len <= out_len`). /// - If `in_ptr` and `out_ptr` are equal, then the memory referenced by /// them must not be accessed through any other pointer (not derived from /// the return value) for the duration of lifetime 'a. Both read and write From b8d76a11309f0c0e0aede5f0a25a55326c7d7764 Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Mon, 29 Jun 2026 16:11:19 +0300 Subject: [PATCH 2/2] Add changelog entry --- inout/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inout/CHANGELOG.md b/inout/CHANGELOG.md index 5d0f81e8..4cd04475 100644 --- a/inout/CHANGELOG.md +++ b/inout/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.2.3 (UNRELEASED) +### Fixed +- List of safety pre-conditions in `InOutBufReserved::from_raw` docs ([#1502]) + +[#1502]: https://github.com/RustCrypto/utils/pull/1502 + ## 0.2.2 (2025-12-27) ### Changed - Require `block-padding` v0.4.2 ([#1291])