mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 22:28:49 +00:00
fix hashmap test
This commit is contained in:
@ -1955,10 +1955,10 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add attribute? not sure
|
// TODO: add attribute? not sure
|
||||||
if (hshape <= 8 && !hashmap_search_and_add(hshape - 1, o->v0) &&
|
if (hshape <= 8 && hashmap_search_and_add(hshape - 1, o->v0) &&
|
||||||
!hashmap_search_and_add(hshape - 1, orig_o->v0) &&
|
hashmap_search_and_add(hshape - 1, orig_o->v0) &&
|
||||||
!hashmap_search_and_add(hshape - 1, o->v1) &&
|
hashmap_search_and_add(hshape - 1, o->v1) &&
|
||||||
!hashmap_search_and_add(hshape - 1, orig_o->v1)) {
|
hashmap_search_and_add(hshape - 1, orig_o->v1)) {
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -2775,10 +2775,10 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
|||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (hshape <= 8 && !hashmap_search_and_add_ptr(hshape - 1, o->v0) &&
|
if (hshape <= 8 && hashmap_search_and_add_ptr(hshape - 1, o->v0) &&
|
||||||
!hashmap_search_and_add_ptr(hshape - 1, orig_o->v0) &&
|
hashmap_search_and_add_ptr(hshape - 1, orig_o->v0) &&
|
||||||
!hashmap_search_and_add_ptr(hshape - 1, o->v1) &&
|
hashmap_search_and_add_ptr(hshape - 1, o->v1) &&
|
||||||
!hashmap_search_and_add_ptr(hshape - 1, orig_o->v1)) {
|
hashmap_search_and_add_ptr(hshape - 1, orig_o->v1)) {
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user