Commit Graph

47 Commits

Author SHA1 Message Date
Michael Niedermayer b8bb98260c projects/ffmpeg/build: Disable components during build of libavformat which are not tested (#2601)
This disables network protocol code, muxing and IO device code.
None of this is tested currently.

This reduces the filesize slightly and speeds up build slightly
This could matter if we switch to one binary tool per container format
for testing. Currently it probably doesnt matter much.

We may want to add support for testing muxing in the future but first
good coverage of the input (demuxing) side should be achieved.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2019-07-14 11:50:18 -07:00
Michael Niedermayer c9fd3f45db projects/ffmpeg/build: Add Demuxer fuzzer (#2483)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2019-06-03 08:49:12 -07:00
jonathanmetzman 3049c50d48
Migrate projects using -lFuzzingEngine to $LIB_FUZZING_ENGINE (#2325)
Migrate from -lFuzzingEngine to $LIB_FUZZING_ENGINE where possible and not causing breakage
2019-05-01 11:09:55 -04:00
Michael Niedermayer 806f7995fb ffmpeg: use libvdpau-1.2 (#2200)
This fixes build as later vdpau uses meson and the new build
system seems to have bugs or i failed to get it working quickly with
oss-fuzz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2019-03-04 08:26:09 -08:00
Michael Niedermayer 7a11112c92 projects/ffmpeg/Dockerfile: Replace alsalib ftp URL by https (#2184)
This avoids using an insecure protocol, also the alsa server does not
seem to work correctly with ftp currently.
This should fix Issue 13270

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-26 00:40:33 -08:00
Janne Grunau 4a14f2cb84 ffmpeg: fix build by using nasm from ubuntu bionic (#2165)
http://www.nasm.us was down for the last couple of days. nasm from
bionic can be used without dependencies. Same change as #2159 for dav1d.
2019-02-14 10:36:47 -08:00
Oliver Chang 69210b4622
Enable selective unpack for ffmpeg (#2161). (#2162) 2019-02-14 10:59:58 +11:00
Martin Storsjö 4d1a886356 ffmpeg: Build fdk-aac with -fno-sanitize=shift-base (#1932)
The upstream fdk-aac project at Fraunhofer currently have no active
plans to avoid left shifts of negative values, so disable this
checker to help find other potential issues.
2018-11-07 06:22:01 -08:00
Tristan Matthews 26af3160ad ffmpeg: disable crc checking in libogg (#1896) 2018-10-24 06:36:03 -07:00
James Zern 1b2d1931c8 ffmpeg,build.sh: restrict libvpx frame sizes (#1654)
Restricting the maximum resolution and single allocation size will reduce OOM
frequency.
2018-07-26 18:50:05 +10:00
Oliver Chang 3b03651faf
Add --enable-ossfuzz to ffmpeg configure. 2018-05-30 11:05:13 +10:00
Abhishek Arya 704bca43e4
Fixes #1146 2018-02-15 07:04:51 -08:00
Oliver Chang 01b5b6bed0
Update Dockerfile 2017-11-01 14:47:57 +11:00
Max Moroz 2ed4429e65 [ffmpeg] Fix missing double quotes in build.sh. 2017-10-31 15:41:19 -07:00
Max Moroz 5d586c44da [ffmpeg] Fix the build and add "--depth 1" to "git clone" commands in Dockerfile (#899). 2017-10-31 15:40:13 -07:00
Oliver Chang 3f96f6841f
[ffmpeg] try git repo for ogg (#899) 2017-10-30 11:14:02 +11:00
Max Moroz dba3c1b2e5 [ffmpeg] Fix unbound variable error in build.sh. 2017-08-31 20:15:27 -07:00
Max Moroz 9f2440795f [ffmpeg] Set up LD_LIBRARY_PATH to look up for dependencies in $FFMPEG_DEPS_PATH/lib.
Discovered that missing part while testing https://github.com/google/oss-fuzz/pull/804.
2017-08-31 09:26:21 -07:00
Kostya Serebryany bdf2abcbd5 Update project.yaml 2017-07-11 11:57:25 -07:00
Max Moroz 058c07e93b [ffmpeg] Add John from Google to auto_ccs list. (#668)
* [ffmpeg] Add John from Google to auto_ccs list.

* Create project.yaml
2017-06-09 13:37:06 -07:00
Abhishek Arya 404fce66ab [ffmpeg] Fix build breakage due to nasm >= 2.13. (#620) 2017-05-24 09:56:59 +02:00
Abhishek Arya a83ce13c54 Remove unneeded enable-ossfuzz flag, fixes #568 2017-05-05 13:16:31 -07:00
Kostya Serebryany ed23c7a0c9 ffmpeg: disable ffmpeg's seed corpora, see https://github.com/google/oss-fuzz/issues/567 2017-05-04 14:43:16 -07:00
Kostya Serebryany 9a9514218c better build.sh for ffmpeg 2017-05-04 10:47:39 -07:00
Devin Jeanpierre 330386686d Use apt-get update && apt-get install, per best practices: (#561)
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/

I ran into this because I was getting errors locally, like:

    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.18.4ubuntu1.1_all.deb  404  Not Found [IP: 91.189.88.149 80]

It turns out you get these if you don't update, and the official best practices are to `run apt-get update && apt-get install`. In fact, running _any_ apt-get install command without the apt-get update && before it can result in unfortunate caching artifacts -- see "cache busting". (P.S. thanks to Peng on Freenode for helping me, I'm bad at Ubuntu.)

So:
    sed -re \
        's/RUN apt-get ((-y )?(install|build-dep))/RUN apt-get update \&\& apt-get \1/' -i \
        projects/**/Dockerfile

I also manually fixed the cases that already ran apt-get update in their Dockerfile:
    dlplibs/Dockerfile
    grpc/Dockerfile
    libreoffice/Dockerfile
2017-05-01 23:31:02 -07:00
Michael Niedermayer d5ac427bf8 Ffmpeg test all decoders (#559)
* Use ffmpegs build system to build fuzzer

This commit is under Public Domain

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

* ffmpeg: Remove audio/video/subtitle distinction

This commit is under public domain

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

* ffmpeg: Remove hardcoded list of codecs, test all decoders

This commit is under public domain

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-04-30 17:21:28 -07:00
Max Moroz 7048a709c0 [ffmpeg] Fix #548: use -I${SRC}/ffmpeg when building the fuzzers. 2017-04-25 16:06:51 +02:00
Abhishek Arya 26d50f18fc Enable msan experimental on some projects. (#514) 2017-04-04 17:13:59 -07:00
Oliver Chang 60835ac420 oss-fuzz/BASE_IMAGE -> oss-fuzz-base/BASE_IMAGE 2017-03-22 12:12:51 -07:00
Oliver Chang 7df64d4ac4 [infra] ossfuzz/IMAGE -> gcr.io/oss-fuzz/IMAGE 2017-03-15 18:46:31 -07:00
Oliver Chang 1afb735f41 Fix ffmpeg link. Fixes #415 (#416) 2017-02-22 17:31:40 -08:00
Oliver Chang 3831cc7ba4 [experimental] Enable afl for ffmpeg 2017-02-21 20:09:55 -08:00
Abhishek Arya 343ba3402f libav moved, fix location. Fixes #408. 2017-02-19 22:41:59 -08:00
Abhishek Arya 499690c55f Enable UBSan without vptr for ffmpeg, disable vptr for libFuzzer. (#404) 2017-02-17 23:13:50 -08:00
Mike Aizatsky eccbe4a50a [ffmpeg] disabling undefined sanitizer
Doesn't build because of:

clang-5.0: error: invalid argument '-fsanitize=vptr' not allowed with '-fno-rtti'

#234
2017-02-02 12:37:20 -08:00
Max Moroz 832d367dc6 [ffmpeg] Fix renamed fuzz target source code file (#338). 2017-01-31 15:13:31 +01:00
Mike Aizatsky e6a8c4d6cd [infra] updating usages of base-libfuzzer (#142) 2017-01-03 15:07:49 -08:00
Mike Aizatsky 7d911ec094 [infra] replacing wget with ADD where possible 2016-12-28 14:09:09 -08:00
Mike Aizatsky 14e613045f [ffmpeg] more undefined vars 2016-12-28 10:31:50 -08:00
Mike Aizatsky 64f8b6593d [ffmpeg] LDFLAGS is not present 2016-12-27 16:22:12 -08:00
Mike Aizatsky 3dd707ed58 [infra] using -lFuzzingEngine instead of -lfuzzer 2016-12-07 11:41:08 -08:00
Mike Aizatsky 635073e584 Update project.yaml 2016-12-02 10:51:21 -08:00
Mike Aizatsky afcf8f9690 [ffmpeg] some repos do not like depth=1 2016-11-29 18:58:53 -08:00
Mike Aizatsky cf248c4759 [infra] making shallow git clones. fixes #42 2016-11-29 12:55:45 -08:00
Mike Aizatsky 879120437d [infra] build.sh cleanup 2016-11-29 11:33:42 -08:00
Mike Aizatsky a1f645866d [infra] target.yaml -> project.yaml 2016-11-29 11:03:26 -08:00
Mike Aizatsky a143b9b39a [infra] renaming targets/ to projects/ 2016-11-29 10:55:25 -08:00