mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 09:46:29 +01:00
`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>