about summary refs log tree commit diff
path: root/include/cmplog.h
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-02-05 15:05:46 +0100
committervanhauser-thc <vh@thc.org>2024-02-05 15:05:46 +0100
commit40df85d1e6fb80e9d641064e645a48b623aee681 (patch)
tree7e1ec525de3658ce39f675c120dd1c29519ead19 /include/cmplog.h
parent47e7d243f7522b21beeb7bb9e91f3f312a9659f0 (diff)
downloadafl++-40df85d1e6fb80e9d641064e645a48b623aee681.tar.gz
adjust cmplog header
Diffstat (limited to 'include/cmplog.h')
-rw-r--r--include/cmplog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index 91c2a665..589570fe 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -38,16 +38,16 @@
 
 #define SHAPE_BYTES(x) (x + 1)
 
-#define CMP_TYPE_INS 1
-#define CMP_TYPE_RTN 2
+#define CMP_TYPE_INS 0
+#define CMP_TYPE_RTN 1
 
 struct cmp_header {
 
   unsigned hits : 6;       // up to 63 entries, we have CMP_MAP_H = 32
-  unsigned shape : 6;      // 63 bytes, we support 32 max
-  unsigned type : 2;       // 4, we use 3: none, rtn, cmp
+  unsigned shape : 5;      // 31+1 bytes
+  unsigned type : 1;       // 4, we use 3: none, rtn, cmp
   unsigned attribute : 4;  // 16 for arithmetic comparison types
-  unsigned reserved : 6;
+  //unsigned reserved : 6;
 
 } __attribute__((packed));