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
Decompressor::decompress_typed_into decodes a typed or multi-output frame
into a caller's Vec<TypedOutput>, refilling the outputs of an earlier call
instead of allocating new ones. An output still takes its stream's buffer
without a copy; the stream now gets the output's former buffer in exchange,
so for frames of a steady shape the same buffers alternate between caller
and decoder. Where the allocator returns large blocks to the system
(MALLOC_MMAP_THRESHOLD_=1048576), decompress-typed/series decodes 27 MiB
in 7.9 ms instead of 11.1 ms and 4.5 MiB in 0.91 ms instead of 1.43 ms; with
glibc's default recycling it is level with decompress_typed on 27 MiB
(8.27 ms against 8.37 ms) and 2-8% slower on 4.5 MiB, where the
alternating buffer is less cache-hot than the block glibc just freed. decompress_typed is unchanged. The decoder keeps the outputs' former
buffers between calls, so the caller and the decoder together hold about
twice the outputs' size, and under RetentionPolicy::Bounded the spares
count toward the bound.
hotpath 0.33.1 for the profiling features, the Criterion benches and benchmarks/comparison (which was still on 0.31 and so locked a second hotpath beside the library's). 0.33.1 is the floor: hotpath-macros
0.33.1 calls a builder method that hotpath 0.33.0 lacks.
The fuzz targets build with afl 0.19 and CI installs cargo-afl 0.19.0
(AFL++ 5.03c). Dependabot now leaves afl's minor updates in /fuzz/libfuzzer to the same by-hand bump as /fuzz/afl.
Cargo.lock takes cookie 0.18.3 (GHSA-8wcq-xq25-7fhm, private cookie
nonces repeating after fork). It arrives only through hotpath's ureq cookie store, which uses no private cookies, so the library was
not exposed; the bump clears the Dependabot alert.
Fixes
The fse_ncount codec reads count headers exactly as the reference's FSE_readNCount does near the end of the buffer: its 4-byte window stops
at the last word and the bit offset wraps, so a header that runs off its
end re-reads bits of that word instead of failing. Such headers decoded in
C but were rejected here as CodecStream. ClusterFuzzLite found it
(decompress, run 46262875131). openzl-ffi gains entropy::fse_read_ncount (shim/entropy.c) for the differential test.