2025-06-17 12:04:00 +03:00
|
|
|
// Copyright (C) 2024-2025 Internet Systems Consortium, Inc. ("ISC")
|
2024-10-15 12:41:41 +03:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2025-06-17 12:04:00 +03:00
|
|
|
std::string KEA_FUZZ_DIR();
|
2024-10-15 12:41:41 +03:00
|
|
|
|
2025-06-17 12:04:00 +03:00
|
|
|
extern "C" {
|
2024-10-15 12:41:41 +03:00
|
|
|
|
|
|
|
bool
|
|
|
|
DoInitialization();
|
|
|
|
|
|
|
|
int
|
|
|
|
LLVMFuzzerInitialize();
|
|
|
|
|
|
|
|
int
|
|
|
|
LLVMFuzzerTearDown();
|
|
|
|
|
|
|
|
int
|
|
|
|
LLVMFuzzerTestOneInput(uint8_t const* data, size_t size);
|
|
|
|
|
|
|
|
void
|
|
|
|
writeToFile(std::string const& file, std::string const& content);
|
|
|
|
|
|
|
|
bool
|
|
|
|
byteStreamToPacketData(uint8_t const* data, size_t size, std::vector<uint8_t>& byte_stream);
|
|
|
|
|
2024-10-28 13:09:52 -04:00
|
|
|
} // extern "C"
|