diff options
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r-- | include/alloc-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h index d851fd61..814d8511 100644 --- a/include/alloc-inl.h +++ b/include/alloc-inl.h @@ -112,16 +112,19 @@ \ \ \ + \ if (_p) { \ \ \ \ \ + \ if (ALLOC_C1(_p) ^ ALLOC_MAGIC_C1) {\ \ \ \ \ + \ if (ALLOC_C1(_p) == ALLOC_MAGIC_F) \ ABORT("Use after free."); \ else ABORT("Corrupted head alloc canary."); \ @@ -130,6 +133,7 @@ \ \ \ + \ if (ALLOC_C2(_p) ^ ALLOC_MAGIC_C2) \ ABORT("Corrupted tail alloc canary."); \ \ @@ -139,6 +143,7 @@ \ \ \ + \ } while (0) */ |