Repository navigation
Conversation
The scanner stopped with 32 bytes remaining even though its format permits a 23-byte candidate. Valid short records were found with padding but lost when they were the archive's final record. Use the actual minimum candidate size. Cover 28- and 32-byte records at the start and after a prefix, and document unpadded final-record support. A temporary native harness linked the real pack.rs with miniz_oxide 0.9.1: the short-record test failed before the change; afterward 2 tests passed (short records and bounds). This is not a Windows workspace test run. Windows/GPU tests and main/head title smoke runs remain outstanding. Assisted-by: omp (openai-codex/gpt-6-astra)
Owner
Author
|
Upstream PR xcl-dev#1107 was closed or merged. |
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.
I fixed
pack::scandropping valid short records at the end of its input. The loop required more than 32 bytes remaining, but the accepted record format needs only 23 bytes at minimum. A synthetic 28-byte record was ignored without trailing padding.What is in it
Tested
macOS Darwin 24.6.0, arm64; rustc 1.99.1, miniz_oxide 0.9.1; debug. No GPU used.
A temporary Cargo harness linked the actual repository
crates/xcl/src/gpu/pack.rsas its library, without compiling the Windows runtime or mocking the scanner.Before the fix,
cargo test --offline --manifest-path /tmp/xcl-pack-probe.ANtIu4/Cargo.toml --test short_recordsfailed: the 28-byte record returned no records.After the fix,
cargo test --offline --manifest-path /tmp/xcl-pack-probe.ANtIu4/Cargo.toml --test short_records --test bounds: 2 passed, 0 failed, 0 ignored, 0 skipped. The harness checked four short-record/prefix combinations plus short buffers and out-of-range offsets, and was removed afterward.Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB VM RAM, Red Hat VirtIO GPU DOD), running x64 binaries through Windows emulation; rustc 1.100.0
x86_64-pc-windows-msvc, Windows SDK 26100. Debug build withCARGO_PROFILE_DEV_DEBUG=0,CARGO_PROFILE_TEST_DEBUG=0,CARGO_BUILD_JOBS=1; no GPU tests selected.Exact source archive
5ab17d4fc701aecb1b3b017229b08a908114a5ee, aftercargo clean -p xcl:cargo test --locked -p xcl --lib gpu::pack -- --test-threads=4: 5 passed, 0 failed, 0 ignored, 715 filtered out; no SKIPPED lines. The newshort_records_do_not_need_trailing_paddingtest ran and passed. An earlier shared-cache run reused the prior test executable and is not counted as verification of this revision.Regression run
Not tested
AI use
openai-codex/gpt-6-astra) to find and reproduce the boundary bug, write the fix and regression, run the isolated native harness and focused Windows tests, and prepare this description.Mirror of xcl-dev#1107 (auto-synced, do not edit).