# zstd.Decompress: Assert buffer length requirements as early as possible · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f872dd03da64e5b53d3a5c7a95344b5b64a7aacb)

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

Visibility: public

Requested revision: f872dd03da64e5b53d3a5c7a95344b5b64a7aacb

Requested commit: f872dd03da64e5b53d3a5c7a95344b5b64a7aacb

Commit: f872dd03da64e5b53d3a5c7a95344b5b64a7aacb

Tree: 4b05036b0f163237f166475f5a041aa971345f16

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
zstd.Decompress: Assert buffer length requirements as early as possible

Without this assert, providing a buffer that's smaller than required results in more cryptic assertion failures later on.

```

## Parents

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

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