Run dav1d_oss_fuzz.sh instead of dav1d.cmd to build dav1d.
dav1d_oss_fuzz.sh is a copy of dav1d.cmd, with the only difference being
that it applies a patch to the dav1d source tree to work around a bug in
Meson's symbols_have_underscore_prefix() function when oss-fuzz
specifies -fprofile-instr-generate in CFLAGS in the coverage build.
Part 2 of the fix for https://crbug.com/oss-fuzz/38512.
This is a fix-up of commit f369375419.
During simplification I misused realpath: after a clean checkout,
PREFIX/lib would not exist yet and thus realpath fails.
* libphonenumber: upgrade build to base builder
* libphonenumber: fix typo
* clean up libphonenumber build
* libphonenumber: minor cleanup
* libphonenumber: last fix
* nettle: Use fixed --libdir
When building with autoconf 2.69 in Ubuntu 20.04, the build script
fails to detect the library installation location:
+ export LIBNETTLE_A_PATH=
+ LIBNETTLE_A_PATH=
++ realpath ../nettle-with-libgmp-install/lib/libhogweed.a
realpath: ../nettle-with-libgmp-install/lib/libhogweed.a: No such file or directory
Instead of guessing where the static libraries are installed, this
patch makes it always installed in the same location.
* nettle: Use default focal image
infra/helper.py build_image foobar should, when asked to pull base
images, only pull the generic images as well as the base-builder for the
language declared in foobar.
* Use uninstrumented spirv-as for corpus prep
Using an instrumented version of spirv-as for corpus preparation is very
slow, and can also lead to issues where a bug in spirv-as gets picked up
by instrumentation and causes corpus preparation to fail when we would
rather it succeeded despite the bug.
* Disable msan
Disabling msan for now so that fuzzing using other sanitizers can
proceed.
AddressSanitizer/LeakSanitizer has begun to report partial leaks
due to the library being initialized but never finalized. It's not
clear why only part of the memory is reported and why this hasn't
happened before now, but this is a somewhat legitimate report,
so add finalization calls to release all memory.
The libFuzzer API provides no shutdown cleanup hook,
so use a static variable with a C++ destructor.
Fixes https://github.com/google/oss-fuzz/issues/6440.
Add the required copyright header while we are at it.
This code appeared in https://github.com/google/oss-fuzz/pull/34
together with all the other files that do have the copyright header,
and this license seems to have been already required at the time,
so this should not constitute a licensing change.