Skip to content

v0.2.6

Choose a tag to compare

@Mnwa Mnwa released this 21 Nov 14:27
· 38 commits to main since this release
f529d85

Features

  • framing::FramedIndex, FramedDecompressor::framed_index and
    FramedDecompressor::read_indexed_resource give index-based random access
    to a framed container without a reader that borrows the decoder. The index
    owns the validated directory and the container's start position, so a
    caller can keep the decoder, the source and the index in one struct. It
    works with any decoder and any source holding the same bytes at the same
    positions; each read seeks itself and applies the reading decoder's limits.
    framed_seek_reader and FramedSeekReader are now built on these calls,
    with unchanged signatures and behaviour.

Fixes

  • Decompressor::decompress_typed and Decompressor::frame_info accept a
    one-output frame whose inputs token sets the type bits of an absent second
    output, as ZL_FrameInfo and the reference's typed decoder do. Only the
    byte-oriented paths still reject it, as the reference's
    ZL_getDecompressedSize does. ClusterFuzzLite found it
    (decompress_typed, run 44733372399).