Expand description
A memory-hardening drop-in allocator for Linux.
compatmalloc provides defense-in-depth heap protection as either an
LD_PRELOAD interposer (C/C++ programs, no recompilation needed) or a
Rust #[global_allocator] (CompatMalloc, requires the
global-allocator feature).
§Quick Start (Rust)
ⓘ
use compatmalloc::CompatMalloc;
#[global_allocator]
static GLOBAL: CompatMalloc = CompatMalloc;§Quick Start (C/C++ via LD_PRELOAD)
LD_PRELOAD=libcompatmalloc.so ./your_program