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:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "fuzz.h"
|
||||
|
||||
bool debug = false;
|
||||
|
||||
static isc_mem_t *mctx = NULL;
|
||||
|
||||
int
|
||||
|
@@ -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
|
||||
|
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "fuzz.h"
|
||||
|
||||
bool debug = false;
|
||||
|
||||
int
|
||||
LLVMFuzzerInitialize(int *argc __attribute__((unused)),
|
||||
char ***argv __attribute__((unused)));
|
||||
|
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "fuzz.h"
|
||||
|
||||
bool debug = false;
|
||||
|
||||
static isc_mem_t *mctx = NULL;
|
||||
static isc_lex_t *lex = NULL;
|
||||
|
||||
|
@@ -24,8 +24,6 @@
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
bool debug = false;
|
||||
|
||||
static void
|
||||
test_all_from(const char *dirname) {
|
||||
DIR *dirp;
|
||||
|
Reference in New Issue
Block a user