clang warning fixed

This commit is contained in:
Dominik Maier
2020-04-20 22:07:47 +02:00
parent ce15937717
commit 280374f739
2 changed files with 5 additions and 0 deletions

View File

@ -186,6 +186,9 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len, u32 exec_cksum) {
}
ck_free(rng);
rng = NULL;
// save the input with the high entropy
if (needs_write) {

View File

@ -157,6 +157,8 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) {
u8 cco = !!getenv("AFL_CMIN_CRASHES_ONLY"),
caa = !!getenv("AFL_CMIN_ALLOW_ANY");
if (!outfile) { FATAL("Output filename not set (Bug in AFL++?)"); }
if (!strncmp(outfile, "/dev/", 5)) {
fd = open(outfile, O_WRONLY);