Constructors and destructors for the main program are not reliable
as they may be called before constructors for shared libraries they
depend upon or be called after destructors of shared libraries they
depend upon.
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