MCPcopy Create free account
hub / github.com/R-Fuzz/symsan / SymSanDestroy

Function SymSanDestroy

python/symsan-py.cpp:211–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211static PyObject* SymSanDestroy(PyObject *self) {
212 if (__z3_parser != nullptr) {
213 delete __z3_parser;
214 __z3_parser = nullptr;
215 }
216
217 // Clean up attached shm (from init_parser with shm name)
218 if (__attached_shm != nullptr) {
219 munmap(__attached_shm, __attached_shm_size);
220 __attached_shm = nullptr;
221 __attached_shm_size = 0;
222 } else {
223 // Only call symsan_destroy if we used init (launcher mode)
224 symsan_destroy();
225 }
226
227 Py_RETURN_NONE;
228}
229
230// Initialize parser from shared memory (by name or address)
231// Usage: init_parser(shm_name, size) or init_parser(shm_capsule, size)

Callers

nothing calls this directly

Calls 1

symsan_destroyFunction · 0.85

Tested by

no test coverage detected