Skip to content

Lock corrupted ZIP directory offsets to explicit errors - #7

Merged
GG-O-BP merged 1 commit into
mainfrom
test/zip-offset-bounds
Sep 3, 2026
Merged

Lock corrupted ZIP directory offsets to explicit errors#7
GG-O-BP merged 1 commit into
mainfrom
test/zip-offset-bounds

Conversation

@GG-O-BP

@GG-O-BP GG-O-BP commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • mendraw#11 reported unvalidated central-directory offsets in the removed hand-written ZIP parser. mxpak now uses Erlang/OTP zip, which owns bounds validation; mendraw#3 already added a truncated-archive regression test.
  • This PR locks the issue-specific scenario: a real archive whose EOCD central-directory offset is corrupted to 0x7fffffff (beyond the buffer) returns a descriptive Error instead of crashing or reading out of bounds.

Fixes glendix-labs/mendraw#11

Verification

  • gleam test — 116 passed.
  • ./scripts/verify.sh inner mxpak — passed.
  • ./scripts/check-all.sh — passed.
  • pre-push verify.sh final — passed (family checks, widget build, Lustre E2E, Mendix full E2E).

@GG-O-BP
GG-O-BP merged commit 99d61c1 into main Sep 3, 2026
@GG-O-BP
GG-O-BP deleted the test/zip-offset-bounds branch September 3, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[codegen] ZIP 중앙 디렉토리 오프셋 경계 미검증

1 participant