upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/bindless_sizing_test.cpp
diff options
context:
space:
mode:
authorsyfyra <258908070+syfyra@users.noreply.github.com>2026-11-25 21:34:11 +0100
committersyfyra <258908070+syfyra@users.noreply.github.com>2026-11-25 21:34:11 +0100
commit289c910baa2b96cc6994c4bb4e5d5acd55aa0013 (patch)
treed5cdfa60a631a4844147b6874f703782165c6d88 /runtime/test/bindless_sizing_test.cpp
parentdb1a22d290f5e86fff9282fce3d4e02e788b05b4 (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/bindless_sizing_test.cpp')
0 files changed, 0 insertions, 0 deletions