about summary refs log tree commit diff
path: root/include/cmplog.h
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-17 13:05:33 +0200
committervanhauser-thc <vh@thc.org>2021-10-17 13:05:33 +0200
commited10f3783bd8fab33ab5750f56bf87ed008f28ed (patch)
tree089ce2615c348812175533e9e07a5bb0ba092551 /include/cmplog.h
parent34f1074ba308e850feb08c51aad781f7d307a260 (diff)
downloadafl++-ed10f3783bd8fab33ab5750f56bf87ed008f28ed.tar.gz
new rtn cmplog: instrumentation side + supporting functions
Diffstat (limited to 'include/cmplog.h')
-rw-r--r--include/cmplog.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index 878ed60c..88aa0a61 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -33,7 +33,7 @@
 #define CMPLOG_LVL_MAX 3
 
 #define CMP_MAP_W 65536
-#define CMP_MAP_H 32
+#define CMP_MAP_H 64
 #define CMP_MAP_RTN_H (CMP_MAP_H / 4)
 
 #define SHAPE_BYTES(x) (x + 1)
@@ -59,14 +59,16 @@ struct cmp_operands {
   u64 v0_128;
   u64 v1_128;
 
-};
+} __attribute__((packed));
 
 struct cmpfn_operands {
 
-  u8 v0[32];
-  u8 v1[32];
+  u8 v0[31];
+  u8 v0_len;
+  u8 v1[31];
+  u8 v1_len;
 
-};
+} __attribute__((packed));
 
 typedef struct cmp_operands cmp_map_list[CMP_MAP_H];