// Copyright 2019 The Fuchsia 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 <stddef.h> | |
#include <stdint.h> | |
#include <string> | |
#include "baz.h" | |
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { | |
std::string input(reinterpret_cast<const char *>(data), size); | |
examples::fuzzing::Baz baz; | |
baz.Execute(input); | |
return 0; | |
} |