You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bitunpack decoder now packs numbers wider than their field the way
the reference's portable ZS_bitpackEncode kernels do, rather than masking
them. Only damaged frames hold such numbers. Excess bits of 8- and 16-bit
numbers spill into the next field, up to 64 one-bit fields of 32-bit
numbers are summed with carries, other 32-bit fields go through the
reference's 64-bit accumulator, and byte-aligned fields and 64-bit numbers
stay masked. The CI fuzz run found it (decompress, run 44731741289).
openzl-ffi exposes enc_backends::bitpack_encode, the C ZS_bitpackEncode kernel, as a test oracle. It compiles OpenZL's common_bitpack_kernel.c through shim/bitpack_kernel.c with __BMI2__
undefined, so the oracle runs the portable kernels on every host. Built
with AVX2 and BMI2 (as cargo-afl's -Ctarget-cpu=native does on CI), the
reference packs out-of-range numbers differently, and the decompress
regression replay failed on the x86 runner.
The decoder now accepts three kinds of frame that the reference decodes
and it rejected. ClusterFuzzLite found them (decompress, decompress_typed, run 43709071038).
Decompressor::decompress_typed decodes a frame without chunks to empty
outputs when every declared size is 0, as ZL_DCtx_decompressMultiTBuffer does. It still reports InvalidData { EmptyFrame } when the frame ends less than five bytes
after its inputs token. The byte-oriented decoders still reject every
frame without chunks, as ZL_DCtx_decompress does.
A Zstandard stream may hold several magicless frames, which are decoded
one after another as ZSTD_decompress_usingDDict does. Bytes after the
first frame used to be rejected as CodecStream.
convert_serial_to_struct and splitn regenerating a chunk output
concatenate their serial and struct inputs without checking them against
the codec's signature, as the reference's ZL_AppendToOutputOptimization does. Such a frame used to be rejected
as Graph.
The decompress_typed fuzz oracle accepts the reference's ZL_Type_unassigned for an empty struct or numeric output that no chunk
wrote.
The C oracle (openzl-ffi) now compiles allocation.c with its 100 MiB
allocation cap and bounds single and cumulative allocations during mzl_decompress and mzl_decode_typed through ZS2_malloc_should_fail, so
damaged pivco_huffman and sparse_num frames that claim multi-gigabyte
streams fail in ZL_malloc instead of exhausting memory under
ClusterFuzzLite (decompress, decompress_typed, run 44520833376). Decompressor::decompress_typed also counts four bytes per declared string
toward DecodeLimits::max_output_bytes.