aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-01-17 16:41:30 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-01-17 16:41:30 +0100
commitb6c5974b3781449996f2791b80e22c9fa6c9ba18 (patch)
tree4140474ae9397d21b9a27154162bf8cb125fca02 /include
parentf24135f1ed86443ead13c3b580a5d831d69662d3 (diff)
downloadafl++-b6c5974b3781449996f2791b80e22c9fa6c9ba18.tar.gz
format
Diffstat (limited to 'include')
-rw-r--r--include/afl-fuzz.h5
-rw-r--r--include/cmplog.h9
-rw-r--r--include/config.h12
3 files changed, 14 insertions, 12 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 33ba50f1..ce418931 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -652,8 +652,9 @@ void save_cmdline(u32, char**);
extern u8* cmplog_binary;
extern s32 cmplog_forksrv_pid;
-void init_cmplog_forkserver(char **argv);
-u8 input_to_state_stage(char** argv, u8* orig_buf, u8* buf, u32 len, u32 exec_cksum);
+void init_cmplog_forkserver(char** argv);
+u8 input_to_state_stage(char** argv, u8* orig_buf, u8* buf, u32 len,
+ u32 exec_cksum);
/**** Inline routines ****/
diff --git a/include/cmplog.h b/include/cmplog.h
index 26d4b692..d5947226 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -6,7 +6,7 @@
#define CMP_MAP_W 65536
#define CMP_MAP_H 256
-#define SHAPE_BYTES(x) (x+1)
+#define SHAPE_BYTES(x) (x + 1)
#define CMP_TYPE_INS 0
#define CMP_TYPE_RTN 1
@@ -18,9 +18,9 @@ struct cmp_header {
unsigned cnt : 20;
unsigned id : 16;
- unsigned shape : 5; // from 0 to 31
+ unsigned shape : 5; // from 0 to 31
unsigned type : 1;
-
+
} __attribute__((packed));
struct cmp_operands {
@@ -41,9 +41,10 @@ typedef struct cmp_operands cmp_map_list[CMP_MAP_H];
struct cmp_map {
- struct cmp_header headers[CMP_MAP_W];
+ struct cmp_header headers[CMP_MAP_W];
struct cmp_operands log[CMP_MAP_W][CMP_MAP_H];
};
#endif
+
diff --git a/include/config.h b/include/config.h
index 429c57d2..c5a48df0 100644
--- a/include/config.h
+++ b/include/config.h
@@ -62,13 +62,13 @@
/* Default memory limit for child process (MB): */
#ifndef __NetBSD__
-# ifndef WORD_SIZE_64
-# define MEM_LIMIT 25
-# else
-# define MEM_LIMIT 50
-# endif /* ^!WORD_SIZE_64 */
+#ifndef WORD_SIZE_64
+#define MEM_LIMIT 25
#else
-# define MEM_LIMIT 200
+#define MEM_LIMIT 50
+#endif /* ^!WORD_SIZE_64 */
+#else
+#define MEM_LIMIT 200
#endif
/* Default memory limit when running in QEMU mode (MB): */