pizza mode on 1st of april
MODIFY
TODO.md
TODO.md
## Maybe
+ - forkserver tells afl-fuzz if cmplog is supported and if so enable
+ it by default, with AFL_CMPLOG_NO=1 (?) set to skip?
- afl_custom_fuzz_splice_optin()
- afl_custom_splice()
- cmdline option from-to range for mutations

MODIFY
src/afl-fuzz-stats.c
src/afl-fuzz-stats.c
@@ -1583,7 +1583,7 @@ void show_stats_pizza(afl_state_t *afl) {
afl->in_bitmap || afl->crash_mode)) {
u_stringify_time_diff(time_tmp, cur_ms, afl->last_find_time);
- SAYF(bV bSTOP " last pizza baked : " cRST "%-33s ",
+ SAYF(bV bSTOP " last pizza baked : " cRST "%-37s ",
time_tmp);
} else {
@@ -1754,8 +1754,8 @@ void show_stats_pizza(afl_state_t *afl) {
/* Aaaalmost there... hold on! */
SAYF(bVR bH cCYA bSTOP " Promotional campaign on TikTok yields " bSTG bH30 bH2
- bH bH2 bX bH bSTOP cCYA " Customer type " bSTG bH5 bH2 bH30 bH2 bH bVL
- "\n");
+ bH bH2 bX bH bSTOP cCYA
+ " Customer type " bSTG bH5 bH2 bH30 bH2 bH bVL "\n");
if (unlikely(afl->custom_only)) {
@@ -1999,7 +1999,7 @@ void show_stats_pizza(afl_state_t *afl) {
if (afl->cpu_core_count) {
- char *spacing = SP10, snap[24] = " " cLGN "Pizzaioli's busyness " cRST " ";
+ char *spacing = SP10, snap[80] = " " cLGN "Pizzaioli's busyness " cRST " ";
double cur_runnable = get_runnable_processes();
u32 cur_utilization = cur_runnable * 100 / afl->cpu_core_count;

MODIFY
src/afl-fuzz.c
src/afl-fuzz.c
@@ -2269,6 +2269,21 @@ int main(int argc, char **argv_orig, char **envp) {
runs_in_current_cycle = (u32)-1;
afl->cur_skipped_items = 0;
+ // 1st april fool joke - enable pizza mode
+ // to not waste time on checking the date we only do this when the
+ // queue is fully cycled.
+ time_t cursec = time(NULL);
+ struct tm *curdate = localtime(&cursec);
+ if (curdate->tm_mon == 3 && curdate->tm_mday == 1) {
+
+ afl->afl_env.afl_pizza_mode = 1;
+
+ } else {
+
+ afl->afl_env.afl_pizza_mode = 0;
+
+ }
+
if (unlikely(afl->old_seed_selection)) {
afl->current_entry = 0;

pizza mode on 1st of april