auto code format fixes

This commit is contained in:
Amit Elkabetz 2023-03-05 18:21:35 +02:00
parent 07cf27cddc
commit 403d95d2d2
3 changed files with 10 additions and 9 deletions

View File

@ -693,7 +693,7 @@ typedef struct afl_state {
/* statistics file */ /* statistics file */
double last_bitmap_cvg, last_stability, last_eps; double last_bitmap_cvg, last_stability, last_eps;
u64 stats_file_update_freq_msecs; /* Stats update frequency (msecs) */ u64 stats_file_update_freq_msecs; /* Stats update frequency (msecs) */
/* plot file saves from last run */ /* plot file saves from last run */
u32 plot_prev_qp, plot_prev_pf, plot_prev_pnf, plot_prev_ce, plot_prev_md; u32 plot_prev_qp, plot_prev_pf, plot_prev_pnf, plot_prev_ce, plot_prev_md;

View File

@ -611,9 +611,10 @@ void show_stats_normal(afl_state_t *afl) {
/* Roughly every minute, update fuzzer stats and save auto tokens. */ /* Roughly every minute, update fuzzer stats and save auto tokens. */
if (unlikely(!afl->non_instrumented_mode && if (unlikely(
(afl->force_ui_update || !afl->non_instrumented_mode &&
cur_ms - afl->stats_last_stats_ms > afl->stats_file_update_freq_msecs))) { (afl->force_ui_update || cur_ms - afl->stats_last_stats_ms >
afl->stats_file_update_freq_msecs))) {
afl->stats_last_stats_ms = cur_ms; afl->stats_last_stats_ms = cur_ms;
write_stats_file(afl, t_bytes, t_byte_ratio, stab_ratio, write_stats_file(afl, t_bytes, t_byte_ratio, stab_ratio,

View File

@ -553,11 +553,9 @@ int main(int argc, char **argv_orig, char **envp) {
afl->shmem_testcase_mode = 1; // we always try to perform shmem fuzzing afl->shmem_testcase_mode = 1; // we always try to perform shmem fuzzing
while ( while ((opt = getopt(argc, argv,
(opt = getopt( "+Ab:B:c:CdDe:E:hi:I:f:F:g:G:l:L:m:M:nNOo:p:RQs:S:t:T:u:"
argc, argv, "UV:WXx:YZ")) > 0) {
"+Ab:B:c:CdDe:E:hi:I:f:F:g:G:l:L:m:M:nNOo:p:RQs:S:t:T:u:UV:WXx:YZ")) >
0) {
switch (opt) { switch (opt) {
@ -670,7 +668,9 @@ int main(int argc, char **argv_orig, char **envp) {
case 'u': case 'u':
if (sscanf(optarg, "%llu", &stats_update_freq_sec) < 1) { if (sscanf(optarg, "%llu", &stats_update_freq_sec) < 1) {
FATAL("Bad syntax used for -u"); FATAL("Bad syntax used for -u");
} }
afl->stats_file_update_freq_msecs = stats_update_freq_sec * 1000; afl->stats_file_update_freq_msecs = stats_update_freq_sec * 1000;