blob: d13de640fb3accfa178ac56a63f1f57d331f0537 [file]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/hash/sha1.h"
#include <stdint.h>
#include "base/containers/span.h"
#include "testing/libfuzzer/libfuzzer_base_wrappers.h"
// Entry point for LibFuzzer.
DEFINE_LLVM_FUZZER_TEST_ONE_INPUT_SPAN(base::span<const uint8_t> data) {
base::SHA1Digest sha1 = base::SHA1Hash(data);
(void)sha1;
return 0;
}