8000 Bound ELF build ID note sizes by dajiaohuang · Pull Request #1797 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Bound ELF build ID note sizes - #1797

Open
dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/buildid-elf-note-overflow
Open

dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/buildid-elf-note-overflow

Conversation

@dajiaohuang
@dajiaohuang 8000 dajiaohuang commented Oct 1, 2026 •
Copy link
Copy Markdown

The build ID parser checked ELF note sizes with uint32 additions, so an overflowing descriptor length could pass validation and panic while slicing the note. Parse and align sizes in uint64, check note bounds before advancing, and add a malformed ELF regression.

Review update: the unrelated generic-instantiation change and its fixture were removed through a normal follow-up commit; #1764 tracks that fix separately. Current-head validation: go test ./go/buildid -run TestReadELFRejectsOverflowingNoteSize (one test) passed; git diff --check passed. Prior validation text above is historical unless repeated here.

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.

1 participant

0