diff options
| author | axel escalada <87334103+axlEscalada@users.noreply.github.com> | 2025-01-17 18:55:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-17 22:55:55 +0100 |
| commit | f9a43770c87d4475a8e05b6539917ee26172b7c6 (patch) | |
| tree | 9b46610062fd58a0d15d441308f3d74c448ed612 /src/codegen | |
| parent | c748eb2416d067688d1f4f40af78478e7dfdc4bf (diff) | |
| download | zig-f9a43770c87d4475a8e05b6539917ee26172b7c6.tar.gz zig-f9a43770c87d4475a8e05b6539917ee26172b7c6.zip | |
std.zip: Add ZIP64 support for local file header extra field
This PR adds support for handling ZIP64 format in local file headers,
when a zip file contains entries where the compressed or uncompressed
size fields are set to 0xFFFFFFFF, and the extra field contains ZIP64
extended information tag (0x0001)
The code now:
Reads the actual sizes from the ZIP64 extra field data
Validates these sizes against the entry's compressed and uncompressed sizes
Zip file format spec.: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
This change allows proper extraction of ZIP files that use ZIP64 format in their
local file headers.
Fixes: #22329
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
