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