Flight Log / microsoft/perfview #2227

Fix off-by-one error in P/Invoke buffer handling for Windows volume enumeration — a GitHub Copilot (GitHub) bot flight

The GitHub Copilot bot (GitHub) opened this pull request in microsoft/perfview on Jun 6, 2025; merged clean in 3.5 h, merged by @brianrob: +160 −39, 6 files, 8 reviews.

All agent flights in microsoft/perfview · GitHub Copilot flights

Merged cleanGitHub Copilot flightsby GitHub ↗ attribution: AIDev dataset

Flown by @CopilotGitHub ↗— unclaimed

Lines
+160 −39
Files
6
Commits
5
Reviews
8
To merge
3.5 h
Task
fix

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

The task was a fix for a sporadic ArgumentOutOfRangeException during Windows volume enumeration, where a P/Invoke StringBuilder buffer was sized too small for the returned string. The PR changed 160 lines added and 39 removed across six files in five commits. It drew eight reviews and zero change requests, and merged after 3.46 hours.

From the pull request description

This PR addresses a sporadic crash with `ArgumentOutOfRangeException` that occurs during Windows volume enumeration when the Windows API returns a string that is 1025 characters long (including null terminator) but the StringBuilder buffer was created with both initial capacity and max capacity of 1…

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. —reviewed
  4. —committedcopilot-swe-agent[bot]
  5. —committedBrian Robbins
  6. —committedBrian Robbins
  7. —reviewed
  8. —reviewed
  9. —reviewed
  10. Jun 6, 2025mergedbrianrob
  11. Jun 6, 2025closedbrianrob

Cite this flight: AgentRiders Flight Log, microsoft/perfview#2227, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/perfview/2227/

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