Commit Graph

2 Commits

Author SHA1 Message Date
b4c0ea0ddb test_world_index_three_streams: find split points with enough padding under any zlib
The case needs 16 or more bytes of alignment padding after the first two
streams, and its fixed split points (0x150, 0x420) only give that with
stock zlib's output lengths. Python 3.14 on Windows ships zlib-ng, which
compresses the parts to other lengths: 3 bytes of padding, so the test
failed its own precondition and never checked the join. Search for the
first split points from 0x150/0x420 that give the padding under the zlib
in use, keeping the CMapData root in the third part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:29:16 -06:00
ec6f07e155 world_index: a resource joined from three zlib streams finds the third one
scan_rpf looked for the next continuation at the first stream's start plus
the streams' lengths, leaving out the padding between them. Once two gaps
add up to 16 bytes or more that lands inside the second stream, so the
third was never joined and the row lost its CMapData. Track the last
joined stream's real end, as world_census.assemble and
instance_lists.resource_buffers do.
2026-11-22 12:30:24 +05:30