diff options
| author | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-25 21:34:11 +0100 |
|---|---|---|
| committer | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-25 21:34:11 +0100 |
| commit | 289c910baa2b96cc6994c4bb4e5d5acd55aa0013 (patch) | |
| tree | d5cdfa60a631a4844147b6874f703782165c6d88 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | db1a22d290f5e86fff9282fce3d4e02e788b05b4 (diff) | |
fog_volumes: find a zlib header that starts on a scan-range boundary (FOG-VOLUMES-SCAN-BOUNDARY)
_scan_rpf_chunk searched [start, end) for the 2-byte zlib header with
ZHDR.search(m, pos, end), so a header starting at end - 1 did not match:
its second byte lies past end. The next range starts at end, after the
header's first byte, so no range found it and the resource was lost. The
split points depend on --jobs and the file size, so the same archive gave
different counts for different --jobs values. Search to end + 1 and keep
only a match that starts before end, as world_census.scan_shard does.
Tested: two new tests in tests/test_fog_volumes.py (every split point
around one header; an 8 MiB + 2 byte archive with --jobs 1 and 2), both
fail before the fix. A sweep over all 556 split points of a two-resource
archive finds each resource exactly once (two split points lost one
before).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions