From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:ZIP" |
|---|
| claim | "A ZIP local file header starts 50 4B 03 04 (0x04034b50) and is verified at the offset the central directory gives (miniz), which is file offset 0 only for plain archives (self-extractors and prefixed data shift it). The end-of-central-directory record is 50 4B 05 06 (0x06054b50) and is located by scanning backwards from the file end; an empty archive consists of this record alone at offset 0." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ZIP" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "50 4B 03 04" |
|---|
| offset | "0" |
|---|
| meaning | "ZIP local file header signature (central directory 50 4B 01 02, EOCD 50 4B 05 06)" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG 0x06054b50, CENTRAL_DIR 0x02014b50, LOCAL_DIR 0x04034b50, header sizes 30/46/22; local header sig compared with MZ_READ_LE32 at the entry's local header offset; EOCD found via mz_zip_reader_locate_header_sig" |
|---|
| repo | "https://github.com/kuba--/zip" |
|---|
| commit | "dd80aeab4293d1e11e31af20fabfd538d88625ef" |
|---|
| path | "src/miniz.h" |
|---|
| lines | "5232-5236, 5738-5760, 6714" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Local header and EOCD signatures" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T18:21:12.782Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:36:24.628Z" |
|---|
| summary | "Evidence had no commit; pinned to kuba--/zip dd80aea and read the reader: signatures are checked at the offsets from the central directory (not necessarily file offset 0), EOCD located by backward…" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
|
|---|