oss-fuzz: vms-alpha segfault in image_write_section
Project / Subsystem
binutils / binutils/bfd
Date
2026-06-13
Proposer
Alan Modra <amodra@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
All attributes
- project
- binutils
- subsystem
- binutils/bfd
- patch_id
- —
- discussion_id
- aiz9Vn-M-AAD-CQo@squeak.grove.modra.org
- source_type
- public_inbox
- title
- oss-fuzz: vms-alpha segfault in image_write_section
- headline
- Fixes vms-alpha segfault when writing image sections to avoid crashes from fuzzed object files
- tldr
- A patch prevents a segfault in vms-alpha support within binutils when processing fuzzed object files by adding a NULL check for `image_section`.
- proposer
- Alan Modra <amodra@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
- []
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • bfd
- • vms-alpha
- • fuzzing
- • segfault
- bugzilla_url
- —
- date
- 2026-06-13T00:00:00.000Z
oss-fuzz: vms-alpha segfault in image_write_section
Alan Modra submitted a patch to address a segfault in the image_write_section function within the vms-alpha support of binutils’ BFD library. This crash occurs when processing malformed or fuzzed object files, specifically when image_section is NULL. The proposed fix introduces a NULL check for sec (which is PRIV(image_section)) at the beginning of the function, ensuring that the process handles invalid inputs gracefully instead of crashing.