aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-08-12 10:52:45 +0200
committerhexcoder- <heiko@hexco.de>2019-08-12 10:52:45 +0200
commit925cfba424095a70e8476dfe25a94704639fc597 (patch)
tree72f8b9ea1c17eb86f9b79b744f0ba608490d3e40
parentf63318a20f5ed974de5f8068a67d1292c64ca776 (diff)
downloadafl++-925cfba424095a70e8476dfe25a94704639fc597.tar.gz
signedness in print formats corrected
-rw-r--r--afl-fuzz.c12
-rw-r--r--afl-showmap.c2
-rw-r--r--afl-tmin.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/afl-fuzz.c b/afl-fuzz.c
index 3cae3fc5..2accde86 100644
--- a/afl-fuzz.c
+++ b/afl-fuzz.c
@@ -822,7 +822,7 @@ static void bind_to_free_cpu(void) {
if (i == cpu_core_count) {
SAYF("\n" cLRD "[-] " cRST
- "Uh-oh, looks like all %u CPU cores on your system are allocated to\n"
+ "Uh-oh, looks like all %d CPU cores on your system are allocated to\n"
" other instances of afl-fuzz (or similar CPU-locked tasks). Starting\n"
" another fuzzer on this machine is probably a bad plan, but if you are\n"
" absolutely sure, you can set AFL_NO_AFFINITY and try again.\n",
@@ -3758,7 +3758,7 @@ static void write_stats_file(double bitmap_cvg, double stability, double eps) {
fprintf(f, "start_time : %llu\n"
"last_update : %llu\n"
- "fuzzer_pid : %u\n"
+ "fuzzer_pid : %d\n"
"cycles_done : %llu\n"
"execs_done : %llu\n"
"execs_per_sec : %0.02f\n"
@@ -4121,13 +4121,13 @@ static void maybe_delete_out_dir(void) {
#ifndef SIMPLE_FILES
- u8* nfn = alloc_printf("%s.%04u-%02u-%02u-%02u:%02u:%02u", fn,
+ u8* nfn = alloc_printf("%s.%04d-%02d-%02d-%02d:%02d:%02d", fn,
t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec);
#else
- u8* nfn = alloc_printf("%s_%04u%02u%02u%02u%02u%02u", fn,
+ u8* nfn = alloc_printf("%s_%04d%02d%02d%02d%02d%02d", fn,
t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec);
@@ -4152,13 +4152,13 @@ static void maybe_delete_out_dir(void) {
#ifndef SIMPLE_FILES
- u8* nfn = alloc_printf("%s.%04u-%02u-%02u-%02u:%02u:%02u", fn,
+ u8* nfn = alloc_printf("%s.%04d-%02d-%02d-%02d:%02d:%02d", fn,
t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec);
#else
- u8* nfn = alloc_printf("%s_%04u%02u%02u%02u%02u%02u", fn,
+ u8* nfn = alloc_printf("%s_%04d%02d%02d%02d%02d%02d", fn,
t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,
t->tm_hour, t->tm_min, t->tm_sec);
diff --git a/afl-showmap.c b/afl-showmap.c
index bce7cb4e..af3b36ee 100644
--- a/afl-showmap.c
+++ b/afl-showmap.c
@@ -409,7 +409,7 @@ static void usage(u8* argv0) {
"Execution control settings:\n\n"
" -t msec - timeout for each run (none)\n"
- " -m megs - memory limit for child process (%u MB)\n"
+ " -m megs - memory limit for child process (%d MB)\n"
" -Q - use binary-only instrumentation (QEMU mode)\n"
" -U - use Unicorn-based instrumentation (Unicorn mode)\n"
" (Not necessary, here for consistency with other afl-* tools)\n\n"
diff --git a/afl-tmin.c b/afl-tmin.c
index 4989d7ce..09ce8c62 100644
--- a/afl-tmin.c
+++ b/afl-tmin.c
@@ -896,8 +896,8 @@ static void usage(u8* argv0) {
"Execution control settings:\n\n"
" -f file - input file read by the tested program (stdin)\n"
- " -t msec - timeout for each run (%u ms)\n"
- " -m megs - memory limit for child process (%u MB)\n"
+ " -t msec - timeout for each run (%d ms)\n"
+ " -m megs - memory limit for child process (%d MB)\n"
" -Q - use binary-only instrumentation (QEMU mode)\n"
" -U - use Unicorn-based instrumentation (Unicorn mode)\n\n"
" (Not necessary, here for consistency with other afl-* tools)\n\n"