Path: blob/main/contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp
35262 views
//===- FuzzerMain.cpp - main() function and flags -------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7// main() and flags.8//===----------------------------------------------------------------------===//910#include "FuzzerDefs.h"11#include "FuzzerPlatform.h"1213extern "C" {14// This function should be defined by the user.15int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);16} // extern "C"1718ATTRIBUTE_INTERFACE int main(int argc, char **argv) {19return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput);20}212223