fix: bound executorch zip scanning - #1546
Conversation
Performance BenchmarksCompared
|
ec7ab1e to
e612738
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd7b51ebc6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex address that feedback Please update |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16b481f1ba
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex address that feedback For the new central-directory P2, pass |
|
Summary
Testing
|
|
Summary
Testing
|
|
Published the complete review follow-up at The P1 mocked-clock regression now advances to the deadline breach, and the P2 central-directory budget is checked before raw directory parsing. The adversarial pass also closed trailing-EOCD overlays, repeated digital-signature loops, split small-member compression bombs, zero-like config bypasses, preflight TOCTOU, and silent preflight read failures while adding benign exact-boundary coverage. Focused QA: 56 ExecuTorch scanner tests and 2 Hugging Face deadline tests passed; scoped Ruff, format, mypy, and diff checks are clean. Remote tree matches |
|
Published the final critical-review fixes at The review uncovered and closed four additional gaps: stale path size before descriptor open, contradictory ZIP64 metadata that could hide entries, concatenated archives outside the bounded EOCD tail, and a call-count-dependent Hugging Face deadline test. The preamble check was then narrowed to distinguish real embedded ZIPs from incidental Focused QA: 64 ExecuTorch tests and 2 Hugging Face deadline tests passed; scoped Ruff, format, mypy, and diff checks are clean. Exact published tree: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee3462ecc5
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ee3462e to
0081e23
Compare
|
Addressed the remaining false-negative review at Pickle ZIP budgets now skip only oversized/high-ratio offenders, mark the scan explicitly inconclusive, and continue scanning eligible members so an earlier malicious pickle finding is preserved. Blocked-member warnings are summarized by category to avoid output amplification at the archive entry cap. The #1545 raw-payload/launcher-prefix behavior was preserved through the merge conflict resolution. Focused validation: ExecuTorch scanner module |
|
Verified the P2 follow-up on the true live head |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0081e23aa6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Preserve eligible pickle detections across aggregate and member failures, reject hidden legacy and ZIP64 archives, parse a private stable snapshot, and make the touched deadline tests state-driven.
|
Critical review complete on Beyond the aggregate-order P2, the final pass fixed four reproduced false-negative classes: prior legacy ZIPs outside the EOCD tail, prior ZIP64 archives with forged counts, in-place source mutation after preflight, and unreadable early pickle members suppressing later malicious payloads. Benign EOCD/locator near-matches and exact budget boundaries remain covered. Remote tree |
Summary
ZipFileallocation.False-positive / false-negative audit
Validation
462bd2e52a2a0a3dbaf376f6f7aa55264755fa7f361fc08b923e417a5d699a94099d4afe5e21893481 passedgit diff --check: clean