diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-12-28 18:22:15 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2019-12-28 18:22:15 +0100 |
commit | 58c7a0f8fe1ae5a31a46ea215f678a3a27fc4537 (patch) | |
tree | c298e5013a0807ff0a706766b04e0b6df6279d1e /qbdi_mode/template.cpp | |
parent | 9a2f2f1ee9bb4e72367325a51cbb0e215b0f65c3 (diff) | |
parent | c983e2c5b1c47618a4fac58154cb06020b31bbe3 (diff) | |
download | afl++-58c7a0f8fe1ae5a31a46ea215f678a3a27fc4537.tar.gz |
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'qbdi_mode/template.cpp')
-rwxr-xr-x | qbdi_mode/template.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qbdi_mode/template.cpp b/qbdi_mode/template.cpp index 18766d31..d4ac25e3 100755 --- a/qbdi_mode/template.cpp +++ b/qbdi_mode/template.cpp @@ -114,7 +114,7 @@ void afl_maybe_log(unsigned long cur_loc) { if (afl_area_ptr == NULL) { return; } unsigned long afl_idx = cur_loc ^ afl_prev_loc; - afl_idx &= MAP_SIZE -1; + afl_idx &= MAP_SIZE - 1; INC_AFL_AREA(afl_idx); afl_prev_loc = cur_loc >> 1; @@ -123,7 +123,7 @@ void afl_maybe_log(unsigned long cur_loc) { char *read_file(char *path, unsigned long *length) { unsigned long len; - char * buf; + char * buf; FILE *fp = fopen(path, "rb"); fseek(fp, 0, SEEK_END); |