# std.compress.zstd: fix OOB access in literal decode · gitcafe/zig

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

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

Visibility: public

Requested revision: 7a7d6a02a58f78d19769829df74f911448ebc3d7

Requested commit: 7a7d6a02a58f78d19769829df74f911448ebc3d7

Commit: 7a7d6a02a58f78d19769829df74f911448ebc3d7

Tree: 0ce567500ab9346ab1c204bbdf3e39229a1be1ba

Author: dweiller

Committer: dweiller

## Message

```
std.compress.zstd: fix OOB access in literal decode

When decoding the literals section of a compressed block, the length of
the regenerated size of the literals must be checked against the buffer
literals are decoded into.

```

## Parents

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

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