diff options
author | daan <daanl@outlook.com> | 2019-11-21 15:21:23 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-11-21 15:21:23 -0800 |
commit | 74dbfc30bebc2e7e48e88edf3cf66b35c057b16f (patch) | |
tree | 6314a58d57ec36272711cf99eee18823503d394d /include/mimalloc-types.h | |
parent | 1674d551ffe5dfffd978737786fe8f94ec7b258c (diff) |
improved security by encoding NULL values; double free mitigation on by default; more precise free list corruption detection
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r-- | include/mimalloc-types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index 893dcd6..9c5d3c1 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -26,16 +26,16 @@ terms of the MIT license. A copy of the license can be found in the file // #define MI_SECURE 1 // guard page around metadata // #define MI_SECURE 2 // guard page around each mimalloc page // #define MI_SECURE 3 // encode free lists (detect corrupted free list (buffer overflow), and invalid pointer free) -// #define MI_SECURE 4 // experimental, may be more expensive: checks for double free. (cmake -DMI_SECURE_FULL=ON) +// #define MI_SECURE 4 // checks for double free. (may be more expensive) #if !defined(MI_SECURE) -#define MI_SECURE 0 +#define MI_SECURE 4 #endif // Define MI_DEBUG for debug mode // #define MI_DEBUG 1 // basic assertion checks and statistics, check double free, corrupted free list, and invalid pointer free. // #define MI_DEBUG 2 // + internal assertion checks -// #define MI_DEBUG 3 // + extensive internal invariant checking (cmake -DMI_CHECK_FULL=ON) +// #define MI_DEBUG 3 // + extensive internal invariant checking (cmake -DMI_DEBUG_FULL=ON) #if !defined(MI_DEBUG) #if !defined(NDEBUG) || defined(_DEBUG) #define MI_DEBUG 2 |