mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
improve cmplog
This commit is contained in:
@ -1906,6 +1906,8 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
||||
|
||||
#endif
|
||||
|
||||
if (hshape < 2) { return 0; }
|
||||
|
||||
for (i = 0; i < loggeds; ++i) {
|
||||
|
||||
struct cmp_operands *o = &afl->shm.cmp_map->log[key][i];
|
||||
@ -2698,6 +2700,8 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
||||
|
||||
hshape = SHAPE_BYTES(h->shape);
|
||||
|
||||
if (hshape < 2) { return 0; }
|
||||
|
||||
if (h->hits > CMP_MAP_RTN_H) {
|
||||
|
||||
loggeds = CMP_MAP_RTN_H;
|
||||
|
Reference in New Issue
Block a user