aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-12 16:57:17 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-12 16:57:17 +0200
commit75d28813023c00144675eae7b75f4138ae9f317e (patch)
treee4b1d695fab792be888fc2a821b4b9b670ce7122 /include
parent95b641198e512bdaf3f8c142d5f6d58495d527a8 (diff)
downloadAFLplusplus-75d28813023c00144675eae7b75f4138ae9f317e.tar.gz
ret addr patching
Diffstat (limited to 'include')
-rw-r--r--include/alloc-inl.h34
1 files changed, 5 insertions, 29 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index 814d8511..b0815ab1 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -106,44 +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)
*/