aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2025-08-15 17:38:13 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-15 22:11:51 -0700
commit98547713a354efef406ca79731db8984eb26c051 (patch)
treed0af6057b62cfc741d8d9313ac7e67e2abcde1d8 /src/Compilation.zig
parentee85c8b6d05dbda541d4b0b8b402aafad8e582a3 (diff)
downloadzig-98547713a354efef406ca79731db8984eb26c051.tar.gz
zig-98547713a354efef406ca79731db8984eb26c051.zip
zstd: Protect against index out-of-bounds when decoding sequences
Previously, index out-of-bounds could occur when copying match_length bytes while decoding whatever sequence happened to overflow `dest`. Now, each sequence checks that there is enough room for the full sequence_length (literal_length + match_length) before doing any copying. Fixes the failing inputs found here: https://github.com/ziglang/zig/issues/24817#issuecomment-3192927715
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions