PR 34327 More 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

/10

Technical tradeoffs

  • Increases robustness by adding checks, potentially rejecting more malformed object files.
  • Improves security by preventing out-of-bounds reads.

All attributes

project
binutils
subsystem
binutils
patch_id
discussion_id
akXWTenS9zB13ypw@squeak.grove.modra.org
source_type
public_inbox
title
PR 34327 More out of bounds accesses in reloc special functions
headline
PR 34327 More out of bounds accesses in reloc special functions
tldr
Addresses more instances of out-of-bounds reads in relocation functions across various targets.
proposer
Alan Modra <amodra@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • Increases robustness by adding checks, potentially rejecting more malformed object files.
  • Improves security by preventing out-of-bounds reads.
series_id
series_role
standalone
series_parts
[]
tags
  • security
  • bugfix
  • elf
  • relocations
  • coff
bugzilla_url
date
2026-07-02T00:00:00.000Z

PR 34327 More out of bounds accesses in reloc special functions

This patch series extends the bug fixes from a previous submission, addressing additional locations within relocation special functions that were susceptible to out-of-bounds reads. It applies sanity checks for relocation offsets and performs cleanup, such as removing unnecessary casts, across a range of architectures including ARM, MIPS, SPARC, and others.