aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-12 12:34:53 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-12 12:34:53 +0200
commit6b40189045645938098772260ecda1c0bcbf6467 (patch)
tree4e4c012155e4c7f78b4b9d93553f419bf9736fcc /include
parentdf379dfcf46941125bc6b8f9d3e2e1141b84e137 (diff)
downloadAFLplusplus-6b40189045645938098772260ecda1c0bcbf6467.tar.gz
first version of persistent QEMU
Diffstat (limited to 'include')
-rw-r--r--include/alloc-inl.h5
-rw-r--r--include/config.h6
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 */