vlc: extend seed corpus for low-coverage demuxers and codecs#67
Open
tc-agent wants to merge 2 commits into
Open
vlc: extend seed corpus for low-coverage demuxers and codecs#67tc-agent wants to merge 2 commits into
tc-agent wants to merge 2 commits into
Conversation
Fuzzing Coverage ReportTested: project
Per-harness
Δ = (after − before) / before, to accommodate that denominators may change. "new" when before is 0; "deleted" when after is 0. |
tc-agent
force-pushed
the
master
branch
2 times, most recently
from
May 27, 2026 16:16
b5fd10c to
712a52f
Compare
tc-agent
force-pushed
the
update-vlc-fuzzing-seeds
branch
from
May 27, 2026 16:43
00d4f2c to
0c13b23
Compare
tc-agent
force-pushed
the
master
branch
6 times, most recently
from
May 28, 2026 18:05
af7f9a7 to
806b281
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Python-generated seed corpora (and one new libFuzzer dictionary) for
several VLC demuxers and codecs whose line coverage in the latest
OSS-Fuzz coverage report
sits at 0 % or in the low single digits.
All seeds are produced deterministically from
generate_seeds.py(nobinary blobs), invoked from
build.shas before.New fuzz targets: the new
seeds/nsv/andseeds/mjpeg/directoriesadd two harness target binaries (
vlc-demux-dec-libfuzzer-nsvandvlc-demux-dec-libfuzzer-mjpeg) through the existing per-seed-dir loopin
build.sh, matching the per-format target pattern already used forasf,mp4,ogg, etc.Coverage gained (locally measured, 5 min
fuzz_for_prper harness)Before / after, line coverage of the targeted files (whole-project
harness-excluded):
modules/demux/mjpeg.cmodules/demux/asf/asfpacket.cmodules/demux/nsv.cmodules/demux/asf/asf.cmodules/demux/mp4/libmp4.c(Baseline column re-measured on a clean build of the same tree, then
re-measured after the seed additions.
fuzz_for_prruns all targetsconcurrently for 5 minutes wall-time.)
New generators
ASF data packets — minimal but structurally valid header + data
object with a Property Flags byte (
0x1D) encoding the field layoutread by
asfpacket.c(replicated-data-length 1 B at bits 0–1, offset-into-media-object 4 B
at bits 2–3, media-object-number 1 B at bits 4–5; the stream-number
byte is read directly and has no length-type field). Exercises the
streaming loop in
asf.cand asfpacket payload parsing — upstream
vlc-fuzz-corpusseeds carryonly a header object so the streaming loop never runs.
TS rich descriptors — PMT with stream descriptors (registration,
AC-3, E-AC-3, DTS, metadata, MPEG-4 SL) and a program-level IOD
descriptor, targeting
ts_sl.c,ts_metadata.cand
mpeg4_iod.c.TS service information — TDT/TOT on PID 0x0014 and a minimal EIT
on PID 0x0012, exercising
ts_si.c.Section length and the standard PSI header come from the existing
psi_section()helper.MP4 per-codec sample entries — separate seeds for Opus, FLAC, AC-3,
E-AC-3, DTS, A-law, μ-law, AV1, VP9, HEVC and Motion-JPEG. Each is a
complete
ftyp+mdat+moovtree with a one-samplestblsoessetup.cwalks the per-FourCC
Track*Setuppaths during track creation. ThefLaCvariant'sdfLabox is built as a FullBox (4-byte version+flagsprefix) so essetup.c's
GetDWBE(blob)==0check passes.MP4 sample-table extras — variants carrying edit lists (`edts`),
composition offsets (`ctts`), sync sample tables (`stss`), shadow
sync (`stsh`), sample-group description / mapping (`sbgp`/`sgpd`),
padding bits (`padb`), sample-dependency types (`sdtp`), MP4
metadata (`udta`/`meta`/`ilst`) and an Object Descriptor box
(`iods`) — all under-exercised box parsers in
libmp4.c.MP4 fragmented (DASH-style) —
mvex+trexinit segmentfollowed by a single fragment (
moof/mfhd/traf/tfhd/tfdt/trun) andmdat, exercising fragmented-MP4 handling.NSV — Nullsoft Streaming Video, with both an
NSVfheader +NSVssync-chunk variant and a streaming-only variant targeting
modules/demux/nsv.c.MJPEG — a raw two-frame MJPEG stream and a
multipart/x-mixed-replace variant, plus a libFuzzer dictionary, for
modules/demux/mjpeg.c.Native FLAC —
fLaCmagic + a STREAMINFO metadata block + a frameheader for
modules/demux/flac.c.The upstream
flac/seeds are MP4-in-FLAC, so the native demuxer'sSTREAMINFO/frame parser is barely reached.
TY series 2 — a 128-KiB master chunk (
TIVO_PES_FILEIDmagic +chunk-type 2 + chunk-size header that
ty.c::Openvalidates), followed by a stream chunk carrying the SubRec types
tivo_demuxdispatches (0x01video PES,0x02audio PES,0x09program info,
0x03CC data).LPCM in PS — DVD-style
private_stream_1LPCM substream with the7-byte private LPCM header for
modules/codec/lpcm.c,routed through the existing PS demuxer.
OGG multi-bitstream seek — two logical bitstreams (different
serial numbers) whose BOS pages carry the canonical Vorbis
identification packet so
Ogg_LogicalStreamSetuprecognises them andthe seek/recovery paths in
modules/demux/oggseek.care reachable.
OGG Vorbis identification — the canonical three-packet Vorbis
setup (identification, comment, setup) plus an audio page, exercising
Vorbis stream-type detection in
modules/demux/ogg.cand the
VorbisCommentparser inxiph_metadata.c.