Landing: 09a510d7e3f6

Project / Subsystem

binutils / bfd

Date

2026-05-27

Author

Alan Modra <amodra@sourceware.org>

Commit

09a510d7e3f68455a3ecc71ee7f7e692315938b3

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
bfd
patch_id
commit_hash
09a510d7e3f68455a3ecc71ee7f7e692315938b3
source_type
public_inbox
headline
Fixes incorrect `sframe_decoder_free` calls, preventing double frees.
tldr
`sframe_decoder_free` is now called correctly, preventing potential double frees.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bfd
  • sframe
  • memory
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-27T00:00:00.000Z

This patch fixes incorrect calls to sframe_decoder_free in sframe_decode and _bfd_elf_merge_section_sframe. Passing the address of a local variable instead of the actual context address can lead to double frees if sfd_info->stf_ctx isn’t cleared. This patch ensures the correct context address is passed, preventing potential memory corruption.