Repository navigation
Add session parts negotiation from pre-sniffed streams - #673
Merged
Merged
Conversation
3 tasks
oferchen
added a commit
that referenced
this pull request
May 15, 2026
…4084) Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1 on the first call to get_checksum2() in the MD4 path (fixes #673)". The fix forces buf1 allocation whenever the static cache is NULL, not just when len grows past len1. oc-rsync does not maintain a static heap-backed buf1 accumulator; the MD4 path streams the input slice and the optional 4-byte seed directly into the digest backend. Every audited site (Md4::digest_with_seed, Md4Strategy, parallel files/blocks, SIMD batch padding for scalar, AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference or zero-initializes its scratch buffer. No MaybeUninit appears under crates/checksums/src/. Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a new regression test asserting digest_with_seed(seed, b"") equals the MD4 of the 4-byte little-endian seed alone.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4084) Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1 on the first call to get_checksum2() in the MD4 path (fixes #673)". The fix forces buf1 allocation whenever the static cache is NULL, not just when len grows past len1. oc-rsync does not maintain a static heap-backed buf1 accumulator; the MD4 path streams the input slice and the optional 4-byte seed directly into the digest backend. Every audited site (Md4::digest_with_seed, Md4Strategy, parallel files/blocks, SIMD batch padding for scalar, AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference or zero-initializes its scratch buffer. No MaybeUninit appears under crates/checksums/src/. Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a new regression test asserting digest_with_seed(seed, b"") equals the MD4 of the 4-byte little-endian seed alone.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4084) Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1 on the first call to get_checksum2() in the MD4 path (fixes #673)". The fix forces buf1 allocation whenever the static cache is NULL, not just when len grows past len1. oc-rsync does not maintain a static heap-backed buf1 accumulator; the MD4 path streams the input slice and the optional 4-byte seed directly into the digest backend. Every audited site (Md4::digest_with_seed, Md4Strategy, parallel files/blocks, SIMD batch padding for scalar, AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference or zero-initializes its scratch buffer. No MaybeUninit appears under crates/checksums/src/. Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a new regression test asserting digest_with_seed(seed, b"") equals the MD4 of the 4-byte little-endian seed alone.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4084) Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1 on the first call to get_checksum2() in the MD4 path (fixes #673)". The fix forces buf1 allocation whenever the static cache is NULL, not just when len grows past len1. oc-rsync does not maintain a static heap-backed buf1 accumulator; the MD4 path streams the input slice and the optional 4-byte seed directly into the digest backend. Every audited site (Md4::digest_with_seed, Md4Strategy, parallel files/blocks, SIMD batch padding for scalar, AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference or zero-initializes its scratch buffer. No MaybeUninit appears under crates/checksums/src/. Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a new regression test asserting digest_with_seed(seed, b"") equals the MD4 of the 4-byte little-endian seed alone.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4084) Refs #2123. Upstream 3.4.2 NEWS records "Fixed an uninitialized buf1 on the first call to get_checksum2() in the MD4 path (fixes #673)". The fix forces buf1 allocation whenever the static cache is NULL, not just when len grows past len1. oc-rsync does not maintain a static heap-backed buf1 accumulator; the MD4 path streams the input slice and the optional 4-byte seed directly into the digest backend. Every audited site (Md4::digest_with_seed, Md4Strategy, parallel files/blocks, SIMD batch padding for scalar, AVX2, AVX512, NEON, SSE2, wasm) either passes the slice by reference or zero-initializes its scratch buffer. No MaybeUninit appears under crates/checksums/src/. Pins the exact 3.4.1 trigger (empty input + non-zero seed) with a new regression test asserting digest_with_seed(seed, b"") equals the MD4 of the 4-byte little-endian seed alone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SessionHandshakePartsdirectly from a pre-sniffedNegotiatedStreamnegotiate_session_parts*flows and re-export it at the crate rootTesting