diff options
| author | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 17:23:56 +0100 |
|---|---|---|
| committer | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 17:23:56 +0100 |
| commit | a05681d1115824a83b1ae2d0e759cf71b256788b (patch) | |
| tree | abb2f374ad6f2689fe8bf0f60aa4dd3ffc5569db /runtime/test/cpp_unwind_test.cpp | |
| parent | 56bdd7e889f6e05ca498eb79e35fa22578fe4696 (diff) | |
page_index: take a continuation shorter than 64 bytes (PAGE-INDEX-TINY-CONTINUATION)
scan_rpf dropped every zlib stream that inflates to fewer than 64 bytes,
the carver's cutoff. A page whose table or last record runs a few bytes
past its stream can be continued by such a stream: docs/navmesh.md
recovers 10 continuations of 16-48 bytes in navmeshes.rpf, 3 of them
0DRP pages'. page_index skipped the short stream and took the next one
in its place, so the page was reported complete with an unrelated
stream's bytes as its continuation and record payload.
Yield short streams too and take one only while a page waits for a
continuation, as tools/navmesh_decode.py does; on its own a short stream
is neither a page (the header alone is 0x60 bytes) nor counted in
"streams", so archives without such streams report exactly as before.
A carved directory holds no short streams, so its mode is unchanged.
Tested: new test_a_continuation_under_64_bytes_is_taken_only_as_one
(fails before: the 256-byte stream after the 40-byte one is taken).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions