Landing: e6336a0b1c46
Project / Subsystem
binutils / bfd
Date
2026-05-27
Author
Alan Modra <amodra@sourceware.org>
Commit
e6336a0b1c4613675c760df5a29a6c80e6d0b816
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- e6336a0b1c4613675c760df5a29a6c80e6d0b816
- source_type
- public_inbox
- headline
- Fixes incorrect `sframe_encoder_free` calls.
- tldr
- Corrected calls to `sframe_encoder_free` to prevent 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_encoder_free in _bfd_elf_write_section_sframe, _bfd_s390_elf_write_sframe_plt, and _bfd_x86_elf_write_sframe_plt. Passing the address of a local variable instead of the actual context address to sframe_encoder_free can lead to double frees. The patch ensures that the correct context address is passed, preventing potential memory corruption.