MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / opensips_fuzz_init

Function opensips_fuzz_init

test/fuzz/fuzz_standalone.h:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63})
64
65__attribute__((constructor (101))) void
66opensips_fuzz_init()
67{
68 static stat_val bad_URIs_c;
69 static stat_val bad_msg_hdr_c;
70 static stat_var _bad_URIs = {.u.val = &bad_URIs_c};
71 static stat_var _bad_msg_hdr = {.u.val = &bad_msg_hdr_c};
72
73 bad_URIs = &_bad_URIs;
74 bad_msg_hdr = &_bad_msg_hdr;
75
76 assert(init_dset() == 0);
77 assert(ensure_global_context() == 0);
78 *log_level = L_CRIT;
79}
80
81#if defined(FUZZ_STANDALONE)
82int LLVMFuzzerTestOneInput(const char *data, size_t size);

Callers

nothing calls this directly

Calls 2

init_dsetFunction · 0.85
ensure_global_contextFunction · 0.85

Tested by

no test coverage detected