Landing: 655b560b0ebe

Project / Subsystem

binutils / bfd

Date

2026-09-26

Author

Alan Modra <amodra@sourceware.org>

Commit

655b560b0ebec50ace2ec6e281d4655b897c1a40

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
—
commit_hash
655b560b0ebec50ace2ec6e281d4655b897c1a40
source_type
public_inbox
headline
Fix integer overflow in COFF section alignment calculation
tldr
Prevents UB by using unsigned integers for COFF section alignment calculations.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • binutils
  • • bfd
  • • bugfix
  • • coff
discussion_id_link
—
bugzilla_pr
—
date
2026-09-26T00:00:00.000Z

An undefined behavior (UB) in coff_compute_section_file_positions has been fixed. When processing COFF files with fuzzed section alignments, large alignment values could cause a signed integer overflow. This change replaces the signed file_ptr with an unsigned ufile_ptr for these calculations, correctly handling large alignments and preventing the overflow.