blob: 51ee43714ea2c2acc3b9702e3c1dca572245eed3 [file] [log] [blame]
// Copyright 2017 The Chromium 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 "base/logging.h"
#include "components/payments/content/utility/fingerprint_parser.h"
struct Environment {
Environment() { logging::SetMinLogLevel(logging::LOG_FATAL); }
};
Environment* env = new Environment();
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
payments::FingerprintStringToByteArray(
std::string(reinterpret_cast<const char*>(data), size));
return 0;
}