Skip to content

revelo v0.5.6

Choose a tag to compare

@github-actions github-actions released this 08 Sep 13:47
· 6 commits to main since this release
a241ce5

Fixed

  • Panic firewall at the C ABI — a parser (or formatter) panic unwinding
    across the extern "C" boundary in revelo-cdylib was undefined behavior.
    MediaInfo_Open and MediaInfo_Inform now wrap their work in
    catch_unwind and report a clean failure instead.
  • flac short-block underflow — a VORBIS_COMMENT block whose declared
    length was smaller than its 4-byte vendor-length field underflowed an unsigned
    subtraction (panic under overflow-checks). Now uses saturating_sub;
    regression test added.
  • mp4 esds underflow — the ES-descriptor chain length now uses
    saturating_sub so a malformed box can't underflow the cursor arithmetic.
  • Spurious FrameRate_Mode_Original — the computed layer unconditionally
    mirrored FrameRate_Mode into FrameRate_Mode_Original, but mediainfo emits
    the latter only when it differs (a VFR source normalized to CFR). The
    redundant equal-copy is removed; parsers that can recover a genuinely
    different original (e.g. FLV, from tag-timestamp variance) set it directly.
  • Spurious Format_Level_Inferred — the AV1 inferred-level check only read
    the Matroska-shaped Format_Profile@Lx.y; it now also honours a standalone
    Format_Level field (MP4 shape) and suppresses the inferred value when it
    matches what the container reported.
  • EXIF/TIFF tag-parser panics on truncated input — parse_exif indexed a
    partial peek_raw_at window before its length guard, and read_tiff_u16 /
    read_tiff_u32 indexed data[off..] with no bounds check. A 1-byte file or a
    truncated IFD panicked the top-level Metadata::from_bytes / from_path on
    every analyzed file (parse_tags runs after detection). Both are guarded now
    (thanks @chiliec, #9).
  • Video-codec panics on malformed bitstreams — a top-level fuzz/truncation
    sweep over Metadata::from_bytes (format-signature seeds mutated with
    truncation, byte-flips and huge length fields) found five more reachable
    panics, all fixed with saturated arithmetic or bounds guards:
    • AVC SPS conformance-window crop exceeding the coded frame underflowed the
      width/height math, and VUI timing with num_units_in_tick ≥ 0x80000000
      overflowed the *2 frame-rate scale.
    • HEVC SPS conformance-window crops had the same width/height underflow.
    • VVC SPS &sps_nal[2..] sliced a 1-byte NAL unconditionally.
    • VC-3 interlaced active_lines * 2 overflowed u16 past 32767 lines.
      Each has a deterministic regression test (RED on the pre-fix code); the sweep
      is kept as crates/revelo/tests/fuzz_sweep.rs.

Thanks

  • @chiliec (#9) reported and fixed the EXIF/TIFF tag-parser panics on
    truncated input — parse_exif's unguarded partial-window read and the
    unbounded read_tiff_u16/read_tiff_u32 indexing crashed the top-level API
    on malformed media. That fix shipped here, and the fuzz harness it was found
    with directly led to the video-codec hardening in this release.