Landing: 8bff282ca5ca

Project / Subsystem

binutils / bfd

Date

2026-07-27

Author

Alan Modra <amodra@sourceware.org>

Commit

8bff282ca5ca40d6acdf492e1db347d082cd1b01

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
commit_hash
8bff282ca5ca40d6acdf492e1db347d082cd1b01
source_type
public_inbox
headline
Use ufile_ptr for file position
tldr
Replaces `file_ptr` with `ufile_ptr` for file offsets in ELF processing to prevent overflow issues.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • elf
  • security
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-27T00:00:00.000Z

This commit changes the type used for file positions in BFD’s ELF processing from file_ptr to ufile_ptr. This change, motivated by a fuzzing test that revealed an overflow in file_ptr addition, correctly uses an unsigned type for offsets. It also allows for the removal of a couple of casts.