aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authordweiller <4678790+dweiller@users.noreply.github.com>2023-11-06 15:31:17 +1100
committerAndrew Kelley <andrew@ziglang.org>2023-11-10 15:18:16 -0500
commit138a35df8f434115be04641b1df29514b0ef1cb8 (patch)
tree15ff4de3ba769e5c1a3b4b9f11202cbc157d005b /src/codegen/spirv.zig
parent9ad03b628f5d4770f9f26e646019292b5ae9cf9b (diff)
downloadzig-138a35df8f434115be04641b1df29514b0ef1cb8.tar.gz
zig-138a35df8f434115be04641b1df29514b0ef1cb8.zip
zstandard: fix division by zero when using RingBuffer
This change fixes some division-by-zero bugs introduced by the optimized ring buffer read/write functions in d8c067966. There are edge cases where decompression can use a length zero ring buffer as the size of the ring buffer used is exactly the the window size specified by a Zstandard frame, and this can be zero. Switching away from loops to mem copies means that we need to ensure ring buffers do not have length zero ring when attempting to read/write from them.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions