2018-07-03 15:45:11 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
*
|
2018-07-03 15:45:11 +02: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 https://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-03 15:45:11 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2021-06-10 08:14:57 +02:00
|
|
|
#include <isc/dir.h>
|
2018-07-03 15:45:11 +02:00
|
|
|
#include <isc/mem.h>
|
|
|
|
#include <isc/once.h>
|
|
|
|
#include <isc/types.h>
|
|
|
|
#include <isc/util.h>
|
|
|
|
|
|
|
|
#include <dst/dst.h>
|
|
|
|
|
2020-08-13 12:18:57 +10:00
|
|
|
extern bool debug;
|
|
|
|
|
2018-07-03 15:45:11 +02:00
|
|
|
int
|
2023-01-10 10:20:44 +01:00
|
|
|
LLVMFuzzerInitialize(int *argc ISC_ATTR_UNUSED, char ***argv ISC_ATTR_UNUSED);
|
2018-07-03 15:45:11 +02:00
|
|
|
|
2020-07-31 13:53:38 +02:00
|
|
|
int
|
|
|
|
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
|
2018-07-03 15:45:11 +02:00
|
|
|
|
2020-07-31 13:53:38 +02:00
|
|
|
#define CHECK(x) \
|
|
|
|
if ((x) != ISC_R_SUCCESS) { \
|
2024-10-17 13:22:48 -07:00
|
|
|
return (0); \
|
2020-07-31 13:53:38 +02:00
|
|
|
}
|