disable corpus introspection, potentially creates huge data

This commit is contained in:
vanhauser-thc 2021-03-04 22:10:32 +01:00
parent f34a860d5f
commit a2f40aa285

View File

@ -198,34 +198,35 @@ void create_alias_table(afl_state_t *afl) {
while (nS) while (nS)
afl->alias_probability[S[--nS]] = 1; afl->alias_probability[S[--nS]] = 1;
#ifdef INTROSPECTION /*
u8 fn[PATH_MAX]; #ifdef INTROSPECTION
snprintf(fn, PATH_MAX, "%s/introspection_corpus.txt", afl->out_dir); u8 fn[PATH_MAX];
FILE *f = fopen(fn, "a"); snprintf(fn, PATH_MAX, "%s/introspection_corpus.txt", afl->out_dir);
if (f) { FILE *f = fopen(fn, "a");
if (f) {
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
struct queue_entry *q = afl->queue_buf[i]; struct queue_entry *q = afl->queue_buf[i];
fprintf( fprintf(
f, f,
"entry=%u name=%s favored=%s variable=%s disabled=%s len=%u " "entry=%u name=%s favored=%s variable=%s disabled=%s len=%u "
"exec_us=%u " "exec_us=%u "
"bitmap_size=%u bitsmap_size=%u tops=%u weight=%f perf_score=%f\n", "bitmap_size=%u bitsmap_size=%u tops=%u weight=%f perf_score=%f\n",
i, q->fname, q->favored ? "true" : "false", i, q->fname, q->favored ? "true" : "false",
q->var_behavior ? "true" : "false", q->disabled ? "true" : "false", q->var_behavior ? "true" : "false", q->disabled ? "true" : "false",
q->len, (u32)q->exec_us, q->bitmap_size, q->bitsmap_size, q->tc_ref, q->len, (u32)q->exec_us, q->bitmap_size, q->bitsmap_size, q->tc_ref,
q->weight, q->perf_score); q->weight, q->perf_score);
}
fprintf(f, "\n");
fclose(f);
} }
fprintf(f, "\n"); #endif
fclose(f); */
}
#endif
/* /*
fprintf(stderr, " entry alias probability perf_score weight fprintf(stderr, " entry alias probability perf_score weight
filename\n"); for (u32 i = 0; i < n; ++i) fprintf(stderr, " %5u %5u %11u filename\n"); for (u32 i = 0; i < n; ++i) fprintf(stderr, " %5u %5u %11u