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-13 11:37:26 +0200
committerGitHub <noreply@github.com>2019-09-13 11:37:26 +0200
commit8ee11fecc475dd6bcaab7f1e5a38c1cfac4c7e56 (patch)
treef728ee952e94bb299bd5fc603009fbcd51dd85cb /include/alloc-inl.h
parenta67d86c6e2ca58db81f2ddf6d0a4c837be88271d (diff)
parent36020c41df88ae863fbc2a148765f9c61c7f8bf8 (diff)
downloadafl++-8ee11fecc475dd6bcaab7f1e5a38c1cfac4c7e56.tar.gz
Merge pull request #57 from vanhauser-thc/persistent_qemu
Persistent mode in QEMU
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r--include/alloc-inl.h29
1 files changed, 5 insertions, 24 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index d851fd61..b0815ab1 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -106,39 +106,20 @@
                                                  \
   } while (0)
 
-/*
-#define CHECK_PTR(_p) do { \
-                           \
-                           \
-                           \
-                           \
+/* #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)
 
 */