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
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.


Full build logs for the curious:
https://buildd.debian.org/status/fetch.php?pkg=afl&arch=arm64&ver=1.77b-1&stamp=1431457991
https://buildd.debian.org/status/fetch.php?pkg=afl&arch=ppc64el&ver=1.77b-1&stamp=1431458592
https://buildd.debian.org/status/fetch.php?pkg=afl&arch=s390x&ver=1.77b-1&stamp=1431466017

--
Jakub Wilk
Reply all
Reply to author
Forward
0 new messages