aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2025-08-13 23:45:23 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-14 17:37:51 -0700
commit08f0780cb2e33ae4d1f7059b6f173459b46adc25 (patch)
treee5428115a5ebb4afb1979289b0060b2cafcc512b /src/Compilation.zig
parente252e6c696192729e576fffbd26991bd4b19e434 (diff)
downloadzig-08f0780cb2e33ae4d1f7059b6f173459b46adc25.tar.gz
zig-08f0780cb2e33ae4d1f7059b6f173459b46adc25.zip
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
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions