Skip to content

fix(native): Validate ELF header entry sizes#1746

Open
jpnurmi wants to merge 4 commits into
masterfrom
jpnurmi/fix/native/elf
Open

fix(native): Validate ELF header entry sizes#1746
jpnurmi wants to merge 4 commits into
masterfrom
jpnurmi/fix/native/elf

Conversation

@jpnurmi
Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi commented May 22, 2026

Reject ELF files whose section or program header entry sizes do not match the struct layout used by the native parsers. This avoids reading past short allocations when malformed ELF headers advertise smaller strides.

Reject ELF files whose section or program header entry sizes do not match
the struct layout used by the native parsers. This avoids reading past short
allocations when malformed ELF headers advertise smaller strides.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Comment thread tests/unit/test_native_backend.c Outdated
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