scudo

Crates.ioscudo
lib.rsscudo
version0.1.3
sourcesrc
created_at2021-11-09 20:44:53.804507
updated_at2022-10-24 12:31:11.921688
descriptionRust Bindings for the Scudo Hardened Allocator
homepagehttps://llvm.org/docs/ScudoHardenedAllocator.html
repositoryhttps://github.com/google/rust-scudo
max_upload_size
id479061
size15,764
Bastian Kersting (1c3t3a)

documentation

README

Idiomatic Rust bindings for the Scudo Hardened Allocator.

Scudo is a user space heap allocator designed to be reistent to heap exploitation. It is useful to you if your program allocates memory and you depend on unsafe code or you want defense-in-depth against heap exploitation. In addition to security, it achieves competitive performance against jemalloc, tcmalloc and others.

To use Scudo in your crate:

$ cargo add scudo
use scudo::GlobalScudoAllocator;
#[global_allocator]
static SCUDO_ALLOCATOR: GlobalScudoAllocator = GlobalScudoAllocator;

If you want to use the unstable std::alloc::Allocator trait, use the allocator_api feature.

Commit count: 28

cargo fmt