# fix bounds checks \(\#4038\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d2c436dcdc71877b92e97277555145ab1be56ca7

Requested commit: d2c436dcdc71877b92e97277555145ab1be56ca7

Commit: d2c436dcdc71877b92e97277555145ab1be56ca7

Tree: 057b1f60f2ed4fa7b4079f04fad7cf84ec4a39eb

Author: Nathan Sobo

Committer: GitHub

## Message

```
fix bounds checks (#4038)

Ensure we `panic()` instead of crash on graphics memory buffer overflow

Also bump the buffer size to 32Mb from 8Mb to make this rarer (but still
possible)

Release Notes: Fixes some crahes due to lack of graphics buffer spacae
```

## Parents

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

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

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