2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Move the debug variable from main.c to individual fuzzer

The fuzzers needs to be completely independent of the main.c for
OSS-Fuzz to work.
This commit is contained in:
Ondřej Surý
2020-08-13 17:55:38 +02:00
parent dd29e2550c
commit 915616a34e
5 changed files with 8 additions and 2 deletions

View File

@@ -20,6 +20,8 @@
#include "fuzz.h"
bool debug = false;
static isc_mem_t *mctx = NULL;
int

View File

@@ -28,6 +28,8 @@
#include "fuzz.h"
bool debug = false;
/*
* Fuzz input to dns_rdata_fromwire(). Then convert the result
* to text, back to wire format, to multiline text, and back to wire

View File

@@ -20,6 +20,8 @@
#include "fuzz.h"
bool debug = false;
int
LLVMFuzzerInitialize(int *argc __attribute__((unused)),
char ***argv __attribute__((unused)));

View File

@@ -19,6 +19,8 @@
#include "fuzz.h"
bool debug = false;
static isc_mem_t *mctx = NULL;
static isc_lex_t *lex = NULL;

View File

@@ -24,8 +24,6 @@
#include <dirent.h>
bool debug = false;
static void
test_all_from(const char *dirname) {
DIR *dirp;