mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 20:28:08 +00:00
inital changes for U256
This commit is contained in:
@ -59,14 +59,15 @@ struct cmp_operands {
|
||||
u64 v1;
|
||||
u64 v0_128;
|
||||
u64 v1_128;
|
||||
u64 unused;
|
||||
|
||||
} __attribute__((packed));
|
||||
|
||||
struct cmpfn_operands {
|
||||
|
||||
u8 v0[31];
|
||||
u8 v0[31 + _CMPLOG_EXTRA];
|
||||
u8 v0_len;
|
||||
u8 v1[31];
|
||||
u8 v1[31 + _CMPLOG_EXTRA];
|
||||
u8 v1_len;
|
||||
|
||||
} __attribute__((packed));
|
||||
|
@ -60,6 +60,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* Support 38 byte wide strings (default: off - up to 29 bytes) */
|
||||
#define CMPLOG_U256 1
|
||||
|
||||
/* If a redqueen pass finds more than one solution, try to combine them? */
|
||||
#define CMPLOG_COMBINE
|
||||
|
||||
@ -523,5 +526,12 @@
|
||||
|
||||
#define AFL_TXT_STRING_MAX_MUTATIONS 6
|
||||
|
||||
/* IGNORE */
|
||||
#ifdef CMPLOG_U256
|
||||
#define _CMPLOG_EXTRA 8
|
||||
#else
|
||||
#define _CMPLOG_EXTRA 0
|
||||
#endif
|
||||
|
||||
#endif /* ! _HAVE_CONFIG_H */
|
||||
|
||||
|
@ -48,6 +48,8 @@ typedef uint128_t u128;
|
||||
#define FS_ERROR_MMAP 16
|
||||
#define FS_ERROR_OLD_CMPLOG 32
|
||||
#define FS_ERROR_OLD_CMPLOG_QEMU 64
|
||||
#define FS_ERROR_U256CMPLOG1 128
|
||||
#define FS_ERROR_U256CMPLOG2 256
|
||||
|
||||
/* Reporting options */
|
||||
#define FS_OPT_ENABLED 0x80000001
|
||||
@ -56,6 +58,7 @@ typedef uint128_t u128;
|
||||
#define FS_OPT_AUTODICT 0x10000000
|
||||
#define FS_OPT_SHDMEM_FUZZ 0x01000000
|
||||
#define FS_OPT_NEWCMPLOG 0x02000000
|
||||
#define FS_OPT_U256CMPLOG 0x04000000
|
||||
#define FS_OPT_OLD_AFLPP_WORKAROUND 0x0f000000
|
||||
// FS_OPT_MAX_MAPSIZE is 8388608 = 0x800000 = 2^23 = 1 << 23
|
||||
#define FS_OPT_MAX_MAPSIZE ((0x00fffffeU >> 1) + 1)
|
||||
|
Reference in New Issue
Block a user