PR 34327 Out of bounds accesses in reloc special functions.
Project / Subsystem
binutils / binutils
Date
2026-07-02
Proposer
Alan Modra <amodra@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
8/10
Technical tradeoffs
- • Enforces stricter bounds checking, potentially rejecting malformed object files that may have previously been processed partially.
- • Corrects a historical inaccuracy in a specific architecture's relocation handling.
All attributes
- project
- binutils
- subsystem
- binutils
- patch_id
- —
- discussion_id
- akXVE3vcyZt4qhY-@squeak.grove.modra.org
- source_type
- public_inbox
- title
- PR 34327 Out of bounds accesses in reloc special functions.
- headline
- PR 34327 Out of bounds accesses in reloc special functions
- tldr
- Fixes out-of-bounds access in relocation functions and corrects a long-standing bug in the mmix howto table.
- proposer
- Alan Modra <amodra@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- 8
- technical_tradeoffs
-
- • Enforces stricter bounds checking, potentially rejecting malformed object files that may have previously been processed partially.
- • Corrects a historical inaccuracy in a specific architecture's relocation handling.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • security
- • bugfix
- • elf
- • relocations
- bugzilla_url
- —
- date
- 2026-07-02T00:00:00.000Z
PR 34327 Out of bounds accesses in reloc special functions.
This patch addresses out-of-bounds read accesses in relocation functions across various ELF targets by implementing proper sanity checks for relocation offsets. It also corrects an issue in the mmix howto table that has persisted since its initial commit, specifically concerning the size and interpretation of the R_MMIX_BASE_PLUS_OFFSET field, which was incorrectly defined as an eight-byte field.