Files
craft-libs/crates/zip/tests
ruchirguitarandClaude Opus 5.5 86bb640756 fix(zip): index virtual names from the central directory and require UTF-8
`virtual_entry_name` and `virtual_entry_size` went through `by_index_raw`,
which seeks the local header, so one part with a damaged local header
stopped `Package::open` and `LazyPackage::open` before any part was read.
They now read only the central-directory record (`by_index_data`); a damaged
part fails only when it is read, as before the hardening.

`ZipFile::name()` decodes a non-UTF-8 name as CP437, so `\x82.xml` was
admitted as `é.xml`. The virtual name now requires the raw bytes to be UTF-8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:32:02 +05:30
..