# Fix segfault caused by wrong size of path sprites bytes length · gitcafe/zed

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

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

Visibility: public

Requested revision: 97bd3e1fde26deed91f6874058a365b97f54a742

Requested commit: 97bd3e1fde26deed91f6874058a365b97f54a742

Commit: 97bd3e1fde26deed91f6874058a365b97f54a742

Tree: 5b0df4317101194d850d6329b2cfb1d657c3c214

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix segfault caused by wrong size of path sprites bytes length

Previously, we were using `size_of` but passing the wrong type in
(MonochromeSprite instead of PathSprite). This caused us to read outside
of the `sprites` smallvec and triggered the segfault.

```

## Parents

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

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