Repository navigation
fix(elf): require complete zlib section-name streams - #10148
Closed
wunianze666-netizen wants to merge 1 commit into
Closed
wunianze666-netizen wants to merge 1 commit into
wunianze666-netizen wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks
Owner
|
The current-base replacement is #12193. It requires the zlib stream to consume the whole declared compressed payload in the shared ELF section decoder and covers both trailing bytes and a second stream. The combined head is validated and queued for squash merge. Thanks for the original fix. |
morluto
added a commit
that referenced
this pull request
Nov 19, 2026
* fix(elf): reject invalid section table and zlib declarations Refs #10149, #10148, #9330. Co-authored-by: Nianze Wu <[email protected]> * fix(elf): share section count admission with carrier readers (#12196) fix(elf): admit section tables before carrier recognition --------- Co-authored-by: Nianze Wu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Require a zlib-compressed ELF section-name table to consume its declared payload before publishing section names.
Problem and expected behavior
An ELF file can declare a zlib-compressed section-name table containing a valid stream followed by unrelated bytes or a second stream. Both
inspect-elf-notesandinspect_elf_notesreturned the first stream's names as complete Evidence. The ELF compression definition assigns the declared payload to zlib data, and RFC 1950 defines the stream boundary at its checksum. ELF gABI compressed sections · RFC 1950Change and scope
Use the existing bounded inflater's consumed-byte count at the shared section-name decoder. A stream that ends before the declared section end returns the decoder's existing malformed outcome. The regression came from inspecting this decoder. Related #9330 validates alignment, and #9560 factors header admission for debug-file linkage.
Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): existing schemas and generated tool metadata.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
047d75a498f18a6608f35ee5e36cf1bf0f81ca97accepted the two malformed fixtures through both compiled surfaces. The candidate rejects both fixtures with the same path and SHA-256. The exact stream and the outside-section control retain equal full normalized reports.invalid_requestand categoryinvalid_input; the SDK receives the corresponding canonical error.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
Compatibility, safety, and release
Author readiness
Human owner: @wunianze666-netizen
Before merge
type(scope): outcome.