From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PyInstaller archive (CArchive and PYZ)" |
|---|
| claim | "Each CArchive TOC entry is a big-endian header of 18 bytes (entry_length, offset, stored length, uncompressed length as uint32, compression flag uint8, typecode char) followed by a NUL-terminated UTF-8 name; entry_length includes the name and padding so that every entry is a multiple of 16 bytes." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PyInstaller archive (CArchive and PYZ)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TOC_ENTRY" |
|---|
| size_min | 19 |
|---|
| fields | | name | "entry_length" |
|---|
| offset | 0 |
|---|
| type | "uint32 BE" |
|---|
|
| name | "offset" |
|---|
| offset | 4 |
|---|
| type | "uint32 BE" |
|---|
|
| name | "length" |
|---|
| offset | 8 |
|---|
| type | "uint32 BE" |
|---|
|
| name | "uncompressed_length" |
|---|
| offset | 12 |
|---|
| type | "uint32 BE" |
|---|
|
| name | "compression_flag" |
|---|
| offset | 16 |
|---|
| type | "uint8" |
|---|
|
| name | "typecode" |
|---|
| offset | 17 |
|---|
| type | "char" |
|---|
|
| name | "name" |
|---|
| offset | 18 |
|---|
| type | "char[]" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_TOC_ENTRY_FORMAT '!IIIIBc' and _parse_toc; writers.py _serialize_toc pads to 16 bytes" |
|---|
| repo | "https://github.com/pyinstaller/pyinstaller" |
|---|
| commit | "ad07220e06931adbd54d4ad1b7ef955ef2a73713" |
|---|
| path | "PyInstaller/archive/readers.py" |
|---|
| lines | "62-76, 139-165" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CArchive TOC entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:06:30.183Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:36:50.097Z" |
|---|
| summary | "data.endianness big added (struct format '!IIIIBc'); typecodes and 16-byte alignment are in the reader/writer." |
|---|
| changed | |
|---|
|
|
|---|