about summary refs log tree commit diff
path: root/include/cmplog.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-18 20:18:18 +0100
committervan Hauser <vh@thc.org>2021-01-18 20:18:18 +0100
commit0b545aaeb45141e91273f2358ec457293c341c92 (patch)
tree1daa2eef3c079df2a737832d92a02ff05bb56c96 /include/cmplog.h
parent94a15b8ca790a87d88c7513282250257f32a48c0 (diff)
downloadafl++-0b545aaeb45141e91273f2358ec457293c341c92.tar.gz
use enums, support cmplog map collisions
Diffstat (limited to 'include/cmplog.h')
-rw-r--r--include/cmplog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index 6392c503..878ed60c 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -38,17 +38,17 @@
 
 #define SHAPE_BYTES(x) (x + 1)
 
-#define CMP_TYPE_INS 0
-#define CMP_TYPE_RTN 1
+#define CMP_TYPE_INS 1
+#define CMP_TYPE_RTN 2
 
 struct cmp_header {
 
   unsigned hits : 24;
   unsigned id : 24;
   unsigned shape : 5;
-  unsigned type : 1;
+  unsigned type : 2;
   unsigned attribute : 4;
-  unsigned reserved : 6;
+  unsigned reserved : 5;
 
 } __attribute__((packed));