afl-fuzz-redqueen.c fix build, also forgotten math lib for ilog* calls

This commit is contained in:
David CARLIER
2023-08-08 21:24:05 +01:00
parent a0aaae9b17
commit 2c376f8994
2 changed files with 4 additions and 3 deletions

View File

@ -2525,6 +2525,7 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
*/
#ifdef _DEBUG
u32 j;
struct cmp_header *hh = &afl->orig_cmp_map->headers[key];
fprintf(stderr, "RTN N hits=%u id=%u shape=%u attr=%u v0=", h->hits, h->id,
hshape, h->attribute);