# git: Fix out-of-bounds indexing when diff bases contain CRLF \(\#52605\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a6aad85cab544b2be56d03b988c58947f69373b4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a6aad85cab544b2be56d03b988c58947f69373b4

Requested commit: a6aad85cab544b2be56d03b988c58947f69373b4

Commit: a6aad85cab544b2be56d03b988c58947f69373b4

Tree: 6b5b7ebaa6135d02f0e2c62b4421d7014bfff733

Author: Cole Miller

Committer: GitHub

## Message

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

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
```

## Parents

- [9fe2a602b94908b0a513437d09c418c43e1fedf8](https://git.cafe/gitcafe/zed/commit/9fe2a602b94908b0a513437d09c418c43e1fedf8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a6aad85cab544b2be56d03b988c58947f69373b4?format=markdown)
