zig/lib/std/compress
Ryan Liptak 08f0780cb2 zstd.Decompress.stream: Fix handling of skippable frames in new_frame state
The previous code assumed that `initFrame` during the `new_frame` state would always result in the `in_frame` state, but that's not always the case. `initFrame` can also result in the `skippable_frame` state, which would lead to access of union field 'in_frame' while field 'skipping_frame' is active.

Now, the switch is re-entered with the updated state so either case is handled appropriately.

Fixes the crashes from https://github.com/ziglang/zig/issues/24817
2025-08-14 17:37:51 -07:00
..
flate std.Io.Writer: introduce rebase to the vtable 2025-08-14 12:56:37 -07:00
lzma std: remove dependencies on legacy coercion 2025-02-26 00:17:09 +00:00
lzma2 std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
testdata remove v1 deflate implementation 2024-02-14 22:34:13 +01:00
xz std: rework zstd for new I/O API 2025-07-25 14:15:33 -07:00
zstd zstd.Decompress.stream: Fix handling of skippable frames in new_frame state 2025-08-14 17:37:51 -07:00
flate.zig std.compress.flate.Decompress: don't compute checksums 2025-07-31 22:10:11 -07:00
lzma.zig std.io: deprecated Reader/Writer; introduce new API 2025-07-07 22:43:51 -07:00
lzma2.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
xz.zig std.compress.xz: eliminate dependency on std.Io.bitReader 2025-07-27 22:08:52 -07:00
zstd.zig zstd.Decompress.stream: Fix handling of skippable frames in new_frame state 2025-08-14 17:37:51 -07:00