zig/lib/std/compress
Ryan Liptak 98547713a3 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
2025-08-15 22:11:51 -07:00
..
2025-08-15 10:44:35 -07:00
2024-02-14 22:34:13 +01:00
2025-07-25 14:15:33 -07:00
2025-08-15 10:44:35 -07:00