mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
The fuzzer also encodes its input, with encoder parameters (quality, lgwin, large window, mode, lgblock, literal context modeling, size hint, npostfix, ndirect, a raw dictionary), chunking, flushes, metadata blocks and dst limits derived from the input's hash, and checks that decoding gives the input back. Add plain text seeds.
35 lines
1.7 KiB
Plaintext
35 lines
1.7 KiB
Plaintext
# This file maps file formats to file extensions, and specifically, to a set of
|
|
# files used to seed fuzz testing.
|
|
#
|
|
# The map is often trivial. For example, the "gif" implementation is tested on
|
|
# files matching "*.gif". However, for some formats, the format name and the
|
|
# conventional file extension differ, such as "gzip" and "gz". There may also
|
|
# be multiple file extensions: both "jpeg" and "jpg" are widely used. First
|
|
# party test data will usually use "jpeg", but third party test data, such as a
|
|
# web crawl sample, may use "jpg".
|
|
#
|
|
# This file is not used by Wuffs per se, but it is used by the "projects/wuffs"
|
|
# directory in the https://github.com/google/oss-fuzz repository.
|
|
#
|
|
# Externally sourced seed files (whose paths start with "../") are fetched by
|
|
# https://github.com/google/oss-fuzz/blob/master/projects/wuffs/Dockerfile
|
|
|
|
bmp: test/data/*.bmp ../bmpsuite_corpus/*.bmp
|
|
brotli: test/data/brotli/*.br test/data/brotli/*.compressed* test/data/brotli/*.txt test/data/*.txt
|
|
bzip2: test/data/*.bz2
|
|
cbor: test/data/*.cbor
|
|
gif: test/data/*.gif test/data/artificial-gif/*.gif
|
|
gzip: test/data/*.gz
|
|
jpeg: test/data/*.jpeg ../libjpeg_turbo_corpus/*.jpg
|
|
json: test/data/*.json ../simdjson_corpus/* ../JSONTestSuite/test_*/*.json
|
|
png: test/data/*.png test/data/artificial-png/*.png ../pngsuite_corpus/*.png
|
|
targa: test/data/*.tga
|
|
wbmp: test/data/*.wbmp
|
|
webp: test/data/*.webp ../webp_corpus/*.webp
|
|
xz: test/data/*.xz ../xz_corpus/*.xz
|
|
zlib: test/data/*.zlib
|
|
|
|
# Wuffs' pixel_swizzler doesn't process any particular file format. We just
|
|
# want some random inputs and bricks* is as good a seed corpus as any.
|
|
pixel_swizzler: test/data/bricks*
|