2018-07-03 15:45:11 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
*
|
|
|
|
* 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
|
2020-09-14 16:20:40 -07:00
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-07-03 15:45:11 +02:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <isc/lang.h>
|
|
|
|
#include <isc/mem.h>
|
|
|
|
#include <isc/once.h>
|
|
|
|
#include <isc/types.h>
|
|
|
|
#include <isc/util.h>
|
|
|
|
|
|
|
|
#include <dst/dst.h>
|
|
|
|
|
|
|
|
ISC_LANG_BEGINDECLS
|
|
|
|
|
2020-08-13 12:18:57 +10:00
|
|
|
extern bool debug;
|
|
|
|
|
2020-02-12 13:59:18 +01:00
|
|
|
int
|
2020-07-31 13:53:38 +02:00
|
|
|
LLVMFuzzerInitialize(int *argc __attribute__((unused)),
|
|
|
|
char ***argv __attribute__((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) { \
|
|
|
|
return 0; \
|
|
|
|
}
|
2018-07-03 15:45:11 +02:00
|
|
|
|
|
|
|
ISC_LANG_ENDDECLS
|