Skip to content

git: Fix out-of-bounds indexing when diff bases contain CRLF#52605

Merged
cole-miller merged 1 commit intomainfrom
fix-diff-crlf-crash
Mar 27, 2026
Merged

git: Fix out-of-bounds indexing when diff bases contain CRLF#52605
cole-miller merged 1 commit intomainfrom
fix-diff-crlf-crash

Conversation

@cole-miller
Copy link
Copy Markdown
Member

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 27, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, Veykril and dinocosta and removed request for a team March 27, 2026 21:06
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 27, 2026
@cole-miller cole-miller enabled auto-merge (squash) March 27, 2026 21:14
@cole-miller cole-miller merged commit a6aad85 into main Mar 27, 2026
41 checks passed
@cole-miller cole-miller deleted the fix-diff-crlf-crash branch March 27, 2026 21:15
@cole-miller
Copy link
Copy Markdown
Member Author

/cherry-pick stable
/cherry-pick preview

github-actions bot pushed a commit that referenced this pull request Mar 27, 2026
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
@zed-zippy
Copy link
Copy Markdown
Contributor

zed-zippy bot commented Mar 27, 2026

🍒💥 Cherry-pick did not succeed
https://github.com/zed-industries/zed/actions/runs/23668189750

zed-zippy bot added a commit that referenced this pull request Mar 27, 2026
… (cherry-pick to stable) (#52607)

Cherry-pick of #52605 to stable

----
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX

checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A

Co-authored-by: Cole Miller <cole@zed.dev>
cole-miller added a commit that referenced this pull request Apr 6, 2026
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
cole-miller added a commit that referenced this pull request Apr 6, 2026
…pick #52605) (#53251)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed a crash on windows with diffs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants