about summary refs log tree commit diff
path: root/include/alloc-inl.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-02 18:53:43 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-02 18:53:43 +0200
commitd47ef88fcd842bd13923b1b519544fa2c8d6d0eb (patch)
tree12a6349c143ae1b0de1215d688344ea9e0727ce1 /include/alloc-inl.h
parentb24639d0113e15933e749ea0f96abe3f25a134a0 (diff)
downloadafl++-d47ef88fcd842bd13923b1b519544fa2c8d6d0eb.tar.gz
minor fixes
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r--include/alloc-inl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index 4a4beff1..302d15b6 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -104,20 +104,26 @@
 /*
 #define CHECK_PTR(_p) do { \
                            \
+                           \
     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."); \
                                                     \
       } \
+        \
       if (ALLOC_C2(_p) ^ ALLOC_MAGIC_C2) \
         ABORT("Corrupted tail alloc canary."); \
                                                \
     } \
       \
+      \
+      \
   } while (0)
 */