fix(pyinstaller): validate CArchive member name framing (#12214)

Co-authored-by: rudycelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
morluto
2026-11-19 00:35:10 -05:00
committed by GitHub
parent 0e07437bc7
commit 166347f38b
4 changed files with 61 additions and 14 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ they do not claim a destination directory. Their `relative_offset` and
Every declared span must end before the PYZ table of contents.
Malformed CArchive TOC rows identify their zero-based table index and byte offset
within the TOC, including truncated headers, invalid names, compression flags,
and type codes. The failure retains its original format reason.
and type codes. The failure retains its original format reason. A TOC name
requires a NUL terminator, and all remaining bytes in the record must be zero.
PYZ `compression_flag` is derived from storage: nonempty payloads are compressed,
including legacy namespaces; an empty namespace has no compressed payload.