icinga2/lib/base/allocator.cpp
Alexander A. Klimov 631dbb179e Override malloc(3) and free(3)
PoC: Icinga crashes.
2023-08-28 15:53:34 +02:00

17 lines
191 B
C++

/* Icinga 2 | (c) 2023 Icinga GmbH | GPLv2+ */
#ifndef _WIN32
#include <cstddef>
extern "C" void* malloc(size_t)
{
return nullptr;
}
extern "C" void free(void*)
{
}
#endif /* _WIN32 */