Landing: 267d62e93e1b
Project / Subsystem
gcc / risc-v
Date
2026-07-15
Author
Jim Lin
Commit
267d62e93e1be7ee62ab674090547a1585ceecf6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 267d62e93e1be7ee62ab674090547a1585ceecf6
- source_type
- github
- headline
- RISC-V: Fix NULL pointer check in target attribute parser
- tldr
- Correctly checks for NULL pointer before dereferencing in RISC-V target attribute parser.
- author
- Jim Lin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • compiler
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-15T00:00:00.000Z
The RISC-V target attribute parser in GCC previously dereferenced a potentially NULL pointer when checking for architecture information. This commit modifies the parser to check if the pointer itself is NULL before attempting to dereference it, aligning with other diagnostic sites and preventing potential crashes.