Landing: ac7113d5e245

Project / Subsystem

binutils / binutils/bfd

Date

2026-10-04

Author

Alan Modra <amodra@sourceware.org>

Commit

ac7113d5e2452c54c5de3c261f00b157ababbd51

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/bfd
patch_id
—
commit_hash
ac7113d5e2452c54c5de3c261f00b157ababbd51
source_type
public_inbox
headline
Fix segfault in coff-go32-exe PE parsing
tldr
Corrected BFD to properly handle coff-go32-exe files, preventing segfaults and incorrect format recognition.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • binutils
  • • bfd
  • • coff
  • • PE
  • • crash fix
discussion_id_link
—
bugzilla_pr
—
date
2026-10-04T00:00:00.000Z

A crash in _bfd_pe_print_private_bfd_data_common when processing coff-go32-exe files has been fixed. Changes in BFD altered the meaning of the bfd.offset field, causing misinterpretation of file structure for subsequent target matches. This led to assertions failing and segfaults. The fix introduces origin to struct bfd_preserve and ensures it’s saved and restored correctly, preventing BFD from misidentifying file formats and avoiding the crash.