Landing: d5a65d4c5acf
Project / Subsystem
binutils / binutils/ctf
Date
2026-07-03
Author
Alan Modra <amodra@gmail.com>
Commit
d5a65d4c5acf91b6fa4223e930b3efd0fa8f4753
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/ctf
- patch_id
- —
- commit_hash
- d5a65d4c5acf91b6fa4223e930b3efd0fa8f4753
- source_type
- public_inbox
- headline
- Fix CTF type parsing to prevent SIGSEGV on malformed input.
- tldr
- CTF type parsing code now validates input sizes against section lengths to prevent crashes.
- author
- Alan Modra <amodra@gmail.com>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • ctf
- • debugging
- • security
- discussion_id_link
- public_inbox:binutils#34342
- bugzilla_pr
- —
- date
- 2026-07-03T00:00:00.000Z
This commit addresses a crash (SIGSEGV) in the CTF (Common Type Format) parsing library within binutils-gdb. It adds crucial sanity checks in init_static_types_internal and upgrade_types_v1 to ensure that calculated variable-length record sizes do not exceed the bounds of the type section, thus preventing buffer overflows and crashes with malformed CTF data.