blob: 89cf6fb54720c39134303f3993e01ce099f75e1a [file] [log] [blame]
// Copyright 2018 The Chromium OS 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 <fuzzer/FuzzedDataProvider.h>
#include "imageloader/manifest.h"
#include "base/logging.h"
class Environment {
Environment() {
logging::SetMinLogLevel(logging::LOGGING_FATAL); // <- DISABLE LOGGING.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
static Environment env;
imageloader::Manifest manifest;
std::string(reinterpret_cast<const char*>(data), size));
return 0;