mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-30 11:34:17 -04:00
support replacing C++ new/delete implementation
This adds support for sanity checks based on sized deallocation and will reduce the overhead of calls through the C++ allocator.
This commit is contained in:
parent
3dc49f8f73
commit
e6e9ac1fc9
3 changed files with 101 additions and 0 deletions
10
README.md
10
README.md
|
@ -53,6 +53,16 @@ libraries.
|
|||
|
||||
# Configuration
|
||||
|
||||
You can set some configuration options at compile-time via arguments to the
|
||||
make command as follows:
|
||||
|
||||
make CONFIG_EXAMPLE=false
|
||||
|
||||
The available configuration options are the following:
|
||||
|
||||
* `CONFIG_CXX_ALLOCATOR`: `true` (default) or `false` to control whether the
|
||||
C++ allocator is replaced
|
||||
|
||||
Compile-time configuration is available in the `config.h` file for controlling
|
||||
the balance between security and performance / memory usage. By default, all
|
||||
the optional security features are enabled. Options are only provided for the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue