diff options
| author | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 17:55:47 +0100 |
|---|---|---|
| committer | syfyra <258908070+syfyra@users.noreply.github.com> | 2026-11-26 17:55:47 +0100 |
| commit | 16dde22775fbf74dc3a99d28d2dd9f0c03d352df (patch) | |
| tree | 8d1d2fbc2b28028360d596f632a2ca888f099d86 /docs/dev-tools.md | |
| parent | d5634defe4030ec12558f70492fd7322ddaf5873 (diff) | |
restofworld_index: judge text on the same 512 bytes in an archive (RESTOFWORLD-INDEX-TEXT-SAMPLE)
_printable decides "text" from the first 512 bytes of a stream (more
than 90% printable). A carved file is classified from its whole data,
but scan_rpf passed only a 256-byte head for streams it does not keep
whole, so one stream could get two signatures: a stream whose first
306 bytes are printable read as "text" from the archive and as
"raw:..." from its carved file. af55ea1b4 removed the same split for
PSIN streams.
Keep a 512-byte head in the archive scan, the sample _printable takes.
The other head checks read at most 16 bytes, so nothing else changes.
Tested: new test_text_is_judged_on_the_same_512_bytes_as_a_carved_file
(fails before: 'text' from the archive, 'raw:6e616d65' from the data).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/dev-tools.md')
0 files changed, 0 insertions, 0 deletions