Skip to content

fix(zip): share desktop and APK framing and preserve bounded ZIP64 views - #12157

Merged
morluto merged 8 commits into
mainfrom
audit/parser-zip64
Nov 19, 2026
Merged

morluto merged 8 commits into
mainfrom
audit/parser-zip64

Conversation

@morluto

@morluto morluto commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Desktop host, generated Python, and APK readers share ZIP framing facts with the appropriate placement rules. Bounded views emit exact ZIP64 counts, honor declared ZIP64 records, and preserve Python 3.9 pairing compatibility. The merged #12163 change recognizes empty archives in desktop state views and generated verifiers, including gzip-wrapped ZIPs.

Fixes #12137
Fixes #12146

Refs #9173, #11759, #9336, and #12163.

Contract and boundary impact

Reads selected ZIP/APK artifacts. Reader safety and retention bounds remain in place.

Evidence and regression coverage

Independent ZIP producers cover 65,535 and 65,536 entries, extended records, prepended archives, empty archives, and malformed metadata. Python 3.9 and 3.13 parity passed on the integrated implementation.

Validation performed

  • Focused desktop ZIP, empty ZIP, gzip, and APK ZIP64 boundary tests passed 47 cases on Node 24.22.1.
  • npm run check:fast and git diff --check origin/main...HEAD passed.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed update appears safe to merge.

Summary

The PR shares ZIP framing facts across desktop, exported Python, and APK readers, preserves exact counts in bounded ZIP64 views, and recognizes empty archives.

  • ZIP readers follow complete end records across desktop and APK paths.
  • Large desktop ZIP views keep the exact number of retained entries.
  • Desktop readers recognize empty ZIP archives by their ending signature.

Reviews (3) · Last reviewed commit: "test(zip): inherit the portable ZIP coun..." · Reviewed by Greptile

@morluto
morluto marked this pull request as ready for review November 19, 2026 02:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T03:02:57.543626Z 520b9d6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

* fix(desktop): recognize empty ZIP state views

(cherry picked from commit 263b25b)

* fix(desktop): reuse empty ZIP admission for wrapped documents

* refactor(zip): share the local-header signature with desktop state

---------

Co-authored-by: wunianze666-netizen <[email protected]>
@morluto
morluto enabled auto-merge (squash) November 19, 2026 03:28
@morluto
morluto merged commit 3d313b5 into main Nov 19, 2026
40 checks passed
@morluto
morluto deleted the audit/parser-zip64 branch November 19, 2026 03:33
@morluto morluto added the bug Something isn't working label Nov 22, 2026
@morluto morluto added the area: evidence Evidence, artifacts, and reconstruction label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Desktop ZIP readers disagree on malformed extra-field extents [Bug] Desktop ZIP readers admit split volumes as single-file archives

1 participant