aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-02-04 16:03:12 +0100
committervanhauser-thc <vh@thc.org>2024-02-04 16:03:12 +0100
commitc77709cdd9b50832ed537dfd65d30bc7ffa79e7b (patch)
tree9b1cf5379c7c8080787a3b6bd10c46f3e4909d05 /include
parent27338fcef121c7700a1e2e99cb31cb7106159293 (diff)
downloadafl++-c77709cdd9b50832ed537dfd65d30bc7ffa79e7b.tar.gz
add U256/32byte support
Diffstat (limited to 'include')
-rw-r--r--include/cmplog.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index 6bfc146b..91c2a665 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -43,13 +43,11 @@
struct cmp_header {
- unsigned hits : 24;
- unsigned id : 24;
- unsigned shape : 5;
- unsigned type : 2;
- unsigned attribute : 4;
- unsigned overflow : 1;
- unsigned reserved : 4;
+ 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 attribute : 4; // 16 for arithmetic comparison types
+ unsigned reserved : 6;
} __attribute__((packed));
@@ -59,14 +57,17 @@ struct cmp_operands {
u64 v1;
u64 v0_128;
u64 v1_128;
+ u64 unused;
+ u8 unused1;
+ u8 unused2;
} __attribute__((packed));
struct cmpfn_operands {
- u8 v0[31];
+ u8 v0[32];
u8 v0_len;
- u8 v1[31];
+ u8 v1[32];
u8 v1_len;
} __attribute__((packed));