blob: 5aed27f03b063279f64c960abed97efdb90388d6 [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 "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, std::span<const uint8_t>(data, size));
return 0;
}