diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/alloc-inl.h | 5 | ||||
| -rw-r--r-- | include/config.h | 6 |
2 files changed, 8 insertions, 3 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) */ diff --git a/include/config.h b/include/config.h index 98eb0a38..f2732ad4 100644 --- a/include/config.h +++ b/include/config.h @@ -373,9 +373,9 @@ /* for *BSD: use ARC4RANDOM and save a file descriptor */ #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) - #ifndef HAVE_ARC4RANDOM - #define HAVE_ARC4RANDOM 1 - #endif +#ifndef HAVE_ARC4RANDOM +#define HAVE_ARC4RANDOM 1 +#endif #endif /* __APPLE__ || __FreeBSD__ || __OpenBSD__ */ #endif /* ! _HAVE_CONFIG_H */ |
