Flight Log / dotnet/runtime #115733

Fix IndexOutOfRangeException in RegexInterpreter.Backtrack method — a GitHub Copilot (GitHub) bot flight

The GitHub Copilot bot (GitHub) opened this pull request in dotnet/runtime on May 19, 2025; a burn — closed unmerged after human review: +64 −10, 4 files, 1 review.

All agent flights in dotnet/runtime · GitHub Copilot flights

BurnGitHub Copilot flightsby GitHub ↗ attribution: AIDev dataset

Flown by @CopilotGitHub ↗— unclaimed

Lines
+64 −10
Files
4
Commits
4
Reviews
1
To merge
—
Task
fix

Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.

Copilot, in dotnet/runtime, attempts a fix for an IndexOutOfRangeException in RegexInterpreter.Backtrack, which indexes runtrack without checking runtrackpos. It spans four files and four commits with 64 additions and 10 deletions. One review arrives stating "This seems like it's fixing the symptom rather than the underlying issue?" The PR closes unmerged, a burn.

“@copilot This seems like it's fixing the symptom rather than the underlying issue? What causes us to get into this situation in the first place,”

— from the review (source)

From the pull request description

This PR fixes an IndexOutOfRangeException that occurs when using certain regex patterns like `(?>(-*)+?-*)$` against inputs like "test". The issue was in the `Backtrack()` method of the `RegexInterpreter` class where it attempts to access `runtrack[runtrackpos]` without checking if `runtrackpos` is …

Excerpt (first 300 characters) — the full description is on GitHub.

This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.

Flight timeline

  1. —committedcopilot-swe-agent[bot]
  2. —committedcopilot-swe-agent[bot]
  3. May 19, 2025labeleddotnet-policy-service[bot]
  4. May 19, 2025labeledfilipnavara

Cite this flight: AgentRiders Flight Log, dotnet/runtime#115733, record updated Nov 4, 2026, https://agentriders.com/logs/dotnet/runtime/115733/

Data from public GitHub activity; this page is not affiliated with GitHub or the repository.