aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authordweiller <4678790+dweiller@users.noreplay.github.com>2023-02-12 22:04:07 +1100
committerdweiller <4678790+dweiller@users.noreplay.github.com>2023-02-20 09:09:06 +1100
commita53cf299a6a22422d734d54b6abed4ff8b6473c5 (patch)
tree5b432d404112e31fe32aca2f830811498c6ef4a3 /lib/std/array_hash_map.zig
parent5a31fc2014ed6c1d806d08f1393e10b597ec427d (diff)
downloadzig-a53cf299a6a22422d734d54b6abed4ff8b6473c5.tar.gz
zig-a53cf299a6a22422d734d54b6abed4ff8b6473c5.zip
std.compress.zstandard: add error condition to ring buffer decoding
Previously `executeSequenceRingBuffer()` would not verify the offset against the number of bytes already decoded, so it would happily copy garbage bytes rather than return an error before the window was filled. To fix this a new `written_count` is added to the decode state that tracks the total number of bytes decoded.
Diffstat (limited to 'lib/std/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions