Dashboardinstitutional-transition-labZIP central-directory structure

ZIP central-directory structure

Category: gotcha
Confidence: 1.00
ID: 01a084a4-ca1b-7377-9267-30c3cdeab77d
Project ID: 1fa3712f-997f-4884-b7ec-8abb79f9e342
Cross-project: No
Recalled in other projects: 1
Source session: 1ZjgTYcT8eC9K18gr
Created: 2026-09-09 05:29:47
Updated: 2026-09-09 05:29:47

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 13h ago

Content

Trap: successful ZipFile.infolist() parsing looks like structural validation because Python accepted the archive, but inconsistent EOCD counts, multi-disk fields, impossible or overlapping offsets, malformed extras, and local/central name disagreement can remain accepted. Fix: validate EOCD, central-directory, and local-header fields from raw bytes and reject every structural inconsistency before trusting member identities or contents.

Move to: