Landing: 5da256175a9f

Project / Subsystem

gcc / gcc

Date

2026-09-01

Author

Jørgen Kvalsvik

Commit

5da256175a9f7a5f82afcd475ac71eb5c065fac8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
5da256175a9f7a5f82afcd475ac71eb5c065fac8
source_type
github
headline
Fix iterator dereference in gcov's tombstone_subsequence_p.
tldr
Prevents potential crash in gcov by guarding iterator dereference.
author
Jørgen Kvalsvik
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • correctness
  • • gcov
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-01T00:00:00.000Z

This commit adds a guard to prevent dereferencing an iterator past the end of the haystack in gcov.cc’s tombstone_subsequence_p function. This addresses a bug where the haystack could be exhausted before the needle, leading to an ASAN-detected issue.