forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 04c5f323eafd9b7e6949b5e876e35c144b5d1d8a

Today

B2: regression for PPS pic_init_qp_minus26 range checkAhmet Kaan Gümüş · 92a771d
B2: regression for PPS pic_init_qp_minus26 range check

Input RBSP [CE 01 A4] encodes pic_init_qp_minus26 = 26 (out of -62..=25) and
must be refused as Corrupt. Evidence: spec 7.4.2.2 range; the check was added
in fbcc820d.
B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins)Ahmet Kaan Gümüş · ede1525
B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins)

AVI AAC counted raw_blocks+1 blocks per frame; raw_blocks already holds the count, so it now uses adts_samples (1024 * raw_blocks), matching the ADTS path. AAC-in-AVI pts/dur only changes (halved).
Other fixes only change behaviour on malformed or edge inputs (no panic/underflow) and are not golden-visible on valid fixtures.
B2: ec-h264-syntax range-check pic_init_qp/qs_minus26, saturating slice_qsAhmet Kaan Gümüş · fbcc820
B2: ec-h264-syntax range-check pic_init_qp/qs_minus26, saturating slice_qs

pic_init_qp_minus26 must lie in [-(26+QpBdOffsetY), 25] (max QpBdOffsetY 36 for 14-bit)
and pic_init_qs_minus26 in [-26, 25] (spec 7.4.2.2); out of range is Corrupt.
slice_qs = pic_init_qs + slice_qs_delta now saturates instead of overflowing.
Valid streams unchanged.
B2: ec-h264-syntax AnnexBIter::next loops instead of recursing on empty NAL spansAhmet Kaan Gümüş · c63953f
B2: ec-h264-syntax AnnexBIter::next loops instead of recursing on empty NAL spans

Repeated 00 00 01 made one recursive call per empty NAL (~350k frames for 1 MB),
overflowing the stack. Regression test added in tests/fuzz_regressions.rs.
Output unchanged for all non-empty NAL units.
B3: ec-h264 length-prefixed packets: push slices without to_vec, reject trailing bytes shorter than the NAL length field as CorruptAhmet Kaan Gümüş · 8e80cd7
B3: ec-h264 length-prefixed packets: push slices without to_vec, reject trailing bytes shorter than the NAL length field as Corrupt

Evidence: trailing 1-3 bytes after the last NAL unit were silently ignored. Not verified against ffmpeg for this exact case. Well-formed streams are unaffected; the to_vec removal does not change bytes.
Cargo.lock for golden subs depsAhmet Kaan Gümüş · c06146fBrowse files
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible syncAhmet Kaan Gümüş · 65e0b1a
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible sync

flac-5.1-44100.flac (pinned ffmpeg 9.0.2, sha256 matches fixtures.sha256): packet 7 is at byte 45447, 5908 bytes. A sync-like header at byte 47501 inside the audio passes header CRC-8, so the probe cut the packet there and the subframe decode ran out of data (need more data). ffprobe lists the packet as 5908 bytes; the footer CRC-16 over [45447,51353) equals the stated 53762 at 51355 and does not match at 47501. Falls back to the first plausible sync when no candidate verifies, so damaged streams behave as before
ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 sAhmet Kaan Gümüş · bb947d2
ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 s

Sintel trailer frames 0..1 s are pure black (ffmpeg 9.0.2 signalstats YAVG=0 at 0 s,
YAVG 44 at 20 s), so the rate-control gates were fed degenerate content (22 bytes/frame).
Same seek as the pin test in encode/more_tests.rs. Pins untouched; re-pin after run.