1 // Copyright 2019 The PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <cstddef> 6 #include <cstdint> 7 8 #include "public/fpdfview.h" 9 10 // This template is used in component builds to forward to the real fuzzers 11 // which are exported from the PDFium shared library. 12 13 // FUZZER_IMPL is a macro defined at build time that contains the name of the 14 // real fuzzer. 15 extern "C" FPDF_EXPORT int FUZZER_IMPL(const uint8_t* data, size_t size); 16 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)17extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 18 return FUZZER_IMPL(data, size); 19 } 20