format '%llu' expects argument of type 'long long unsigned int', but argument $N has type 'u64'
102 views
Skip to first unread message
Jakub Wilk
unread,
May 16, 2015, 3:35:07 PM5/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to afl-...@googlegroups.com
On 64-bit non-x86 architectures, I see lots of warnings like this:
afl-fuzz.c: In function 'DI':
afl-fuzz.c:388:3: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'u64' [-Wformat=]
CHK_FORMAT(1, 10000, "%llu", u64);
^
How about defining u64 as "unsigned long long" unconditionally, not only
on x86-64?
Or alternatively, you could define u64 as uint64_t everywhere, and then
use the PRIu64 macro in string formats.