Merge branch '4035-fuzz-mem-c-871-fatal-error-runtime_check-pthread_mutex_lock-contextslock-0-0-34-0-failed' into 'bind-9.16'
Resolve "fuzz: mem.c:871: fatal error: RUNTIME_CHECK(((pthread_mutex_lock(((&contextslock))) == 0) ? 0 : 34) == 0) failed" See merge request isc-projects/bind9!7907
This commit is contained in:
-12
@@ -30,16 +30,4 @@ extern bool debug;
|
||||
int
|
||||
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
|
||||
|
||||
static isc_mem_t *mctx = NULL;
|
||||
|
||||
static void __attribute__((constructor)) init(void) {
|
||||
isc_mem_create(&mctx);
|
||||
RUNTIME_CHECK(dst_lib_init(mctx, NULL) == ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
static void __attribute__((destructor)) deinit(void) {
|
||||
dst_lib_destroy();
|
||||
isc_mem_destroy(&mctx);
|
||||
}
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
Reference in New Issue
Block a user