Commit Graph

4 Commits

Author SHA1 Message Date
Nigel Tao 97db7e9c5d Build projects/wuffs as C, not C++ (#1397)
The upstream Wuffs project is C, not C++. Having OSS-Fuzz compile Wuffs
as plain C, the way Wuffs' own build system does, should hopefully
lessen OSS-Fuzz build breakages such as issue #1373
2018-05-02 16:49:52 -07:00
Nigel Tao 1e4c9ca39e [wuffs] Allow more file extensions in Wuffs' seed corpora (#1348)
The Wuffs project handles multiple file formats, such as GIF and ZLIB
decoders. Prior to this commit, the format name and the file extension
were the same (case-insensitive) string: fuzz-testing the GIF format was
seeded with test files matching "*.gif", and "*.gif" was trivially
derived from the "gif_fuzzer.cc" file name.

For the GZIP file format, the conventional file extension is ".gz", not
".gzip". For the JPEG file format, both ".jpeg" and ".jpg" are widely
used. Building the seed corpus for future Wuffs codecs might require
mapping from the file format name to arbitrary file extensions.

Wuffs' fuzz/c/std/seed_corpora.txt file (added in
https://github.com/google/wuffs/commit/b6cc2d5e) provides that mapping.
This commit updates OSS-Fuzz's projects/wuffs/build.sh to use it.
2018-04-21 21:50:40 -07:00
Nigel Tao 7f3b7e4576 Fix projects/wuffs build failure (#1278)
Fixes #1272

The wuffs directory layout changed with
https://github.com/google/wuffs/commit/d1399fac
2018-03-29 06:31:17 -07:00
Nigel Tao 27f374480b Add projects/wuffs (#1172) 2018-02-20 18:09:00 +11:00