mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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 |
||
|---|---|---|
| .. | ||
| flate | ||
| lzma | ||
| lzma2 | ||
| testdata | ||
| xz | ||
| zstd | ||
| flate.zig | ||
| lzma.zig | ||
| lzma2.zig | ||
| xz.zig | ||
| zstd.zig | ||