Landing: 9c1da61f610c

Project / Subsystem

gcc / gccrs

Date

2026-09-03

Author

Pierre-Emmanuel Patry

Commit

9c1da61f610c11febcc880ee1dc65aaec5e03847

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
9c1da61f610c11febcc880ee1dc65aaec5e03847
source_type
github
headline
gccrs: Prevent crash on malformed 'self' segment during import finalization
tldr
gccrs now stops processing on malformed 'self' segments to avoid compiler crashes.
author
Pierre-Emmanuel Patry
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • bugfix
  • • rust
discussion_id_link
—
bugzilla_pr
—
date
2026-09-03T00:00:00.000Z

When a ‘self’ segment is encountered in a malformed state during import finalization, gccrs should not continue processing. Continuing could lead to a crash due to an invalid node ID retrieved. This commit modifies the Early::visit function to return early upon detecting such an error, fixing a potential crash.