aboutsummaryrefslogtreecommitdiff
path: root/include/cmplog.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-02-08 14:51:13 +0100
committerGitHub <noreply@github.com>2024-02-08 14:51:13 +0100
commit48070e0148699fbd96dc9f4e5950565498d4ad43 (patch)
treedf6d533f841779a80b0160b57fdbff9337ae015b /include/cmplog.h
parentc23bbddde97d81fdb27351bade8f74fe71e49c21 (diff)
parent698f1e272b8738cd1145ed687861fa5664f14c9b (diff)
downloadafl++-48070e0148699fbd96dc9f4e5950565498d4ad43.tar.gz
Merge branch '420' into dev
Diffstat (limited to 'include/cmplog.h')
-rw-r--r--include/cmplog.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/cmplog.h b/include/cmplog.h
index 6bfc146b..589570fe 100644
--- a/include/cmplog.h
+++ b/include/cmplog.h
@@ -38,18 +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 : 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 : 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;
} __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));