blob: 71bfa5dc4f039e321cb3d3b3999ceb4a55b4fe07 [file] [log] [blame]
// Copyright 2020 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 <lib/stdcompat/span.h>
#include "src/storage/lib/paver/device-partitioner.h"
#include "src/storage/lib/paver/validation.h"
// Simple fuzzer to detect invalid memory accesses of validation.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
(void)paver::IsValidKernelZbi(paver::Arch::kArm64, cpp20::span<const uint8_t>(data, size));
return 0;
}