Bug 1873745 - Fix Dav1d libFuzzer target r=decoder

Differential Revision: https://phabricator.services.mozilla.com/D198177
This commit is contained in:
Jesse Schwartzentruber 2024-01-10 18:15:24 +00:00
parent b538394e02
commit 03b4491aa1

View File

@ -1,9 +1,15 @@
#include "FuzzingInterface.h"
namespace dav1dfuzz {
#define LLVMFuzzerInitialize Dav1dFuzzerInitialize
#define LLVMFuzzerTestOneInput Dav1dFuzzerTestOneInput
extern "C" {
#include "tests/libfuzzer/dav1d_fuzzer.c"
}
MOZ_FUZZING_INTERFACE_RAW(nullptr, dav1dfuzz::LLVMFuzzerTestOneInput,
#undef LLVMFuzzerInitialize
#undef LLVMFuzzerTestOneInput
MOZ_FUZZING_INTERFACE_RAW(Dav1dFuzzerInitialize, Dav1dFuzzerTestOneInput,
Dav1dDecode);