aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2025-08-14 01:12:58 -0700
committerRyan Liptak <squeek502@hotmail.com>2025-08-14 14:08:49 -0700
commit60b0b2129664d6e97822c8ce815518c6a48f9203 (patch)
tree451da90a263939d8aa45e9e6f0dedf7cdaf276fe /lib/std/array_list.zig
parent59de7e3a5725f0c4eeb64bc464db85e019af7446 (diff)
downloadzig-60b0b2129664d6e97822c8ce815518c6a48f9203.tar.gz
zig-60b0b2129664d6e97822c8ce815518c6a48f9203.zip
zstd.Decompress: Treat a partial magic number as a failure
Previously, the "allow EndOfStream" part of this logic was too permissive. If there are a few dangling bytes at the end of the stream, that should be treated as a bad magic number. The only case where EndOfStream is allowed is when the stream is truly at the end, with exactly zero bytes available.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions