mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
Fix format specifiers (#1818)
* Update afl-mutations.h Fix bug: compilation cannot pass when DEBUG macro is enabled * Update afl-fuzz-one.c Fix bug: compilation cannot pass when DEBUG macro is enabled
This commit is contained in:
parent
f87ba7ed63
commit
168ade3b70
@ -2456,7 +2456,7 @@ inline u32 afl_mutate(afl_state_t *afl, u8 *buf, u32 len, u32 steps,
|
||||
}
|
||||
|
||||
char buf[20];
|
||||
snprintf(buf, sizeof(buf), "%ld", val);
|
||||
snprintf(buf, sizeof(buf), "%lld", val);
|
||||
u32 old_len = off2 - off;
|
||||
u32 new_len = strlen(buf);
|
||||
|
||||
|
@ -2995,7 +2995,7 @@ havoc_stage:
|
||||
// fprintf(stderr, "val: %u-%u = %ld\n", off, off2, val);
|
||||
|
||||
char buf[20];
|
||||
snprintf(buf, sizeof(buf), "%ld", val);
|
||||
snprintf(buf, sizeof(buf), "%lld", val);
|
||||
|
||||
// fprintf(stderr, "BEFORE: %s\n", out_buf);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user