blob: 89883f552cd826d762c5c1103dcd7e50e3e8bdae [file] [log] [blame] [edit]
// Copyright 2019 The PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cstddef>
#include <cstdint>
#include "public/fpdfview.h"
// This template is used in component builds to forward to the real fuzzers
// which are exported from the PDFium shared library.
// FUZZER_IMPL is a macro defined at build time that contains the name of the
// real fuzzer.
extern "C" FPDF_EXPORT int FUZZER_IMPL(const uint8_t* data, size_t size);
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
return FUZZER_IMPL(data, size);
}