# Perform a bounds check when allocating in the arena · gitcafe/zed

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

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

Visibility: public

Requested revision: 12bb13b9fc73cb099c565b33b89a64479990fec7

Requested commit: 12bb13b9fc73cb099c565b33b89a64479990fec7

Commit: 12bb13b9fc73cb099c565b33b89a64479990fec7

Tree: 5ca0711ddf7f66fc7b3f2f84c9eef5ee389a40f4

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Perform a bounds check when allocating in the arena

This ensures we don't invoke undefined behavior when overflowing.

Co-Authored-By: Antonio <antonio@zed.dev>

```

## Parents

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

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