diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-03-10 22:04:05 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-03-10 22:04:05 +0100 |
commit | cc1d6b33b1524d52b21a6e9794ee6b0d6a2a9d50 (patch) | |
tree | 717c62b52076b37cb9d4e4efc9f33cf09dea723b /qemu_mode/patches/afl-qemu-floats.h | |
parent | 2832cb643d90ff6bad7a6ba4ff139988f10b171a (diff) | |
download | afl++-cc1d6b33b1524d52b21a6e9794ee6b0d6a2a9d50.tar.gz |
unified pointer placement
Diffstat (limited to 'qemu_mode/patches/afl-qemu-floats.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-floats.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qemu_mode/patches/afl-qemu-floats.h b/qemu_mode/patches/afl-qemu-floats.h index f88bbf4a..2e50cf7e 100644 --- a/qemu_mode/patches/afl-qemu-floats.h +++ b/qemu_mode/patches/afl-qemu-floats.h @@ -64,14 +64,14 @@ union afl_float64 { // TODO figure out why float*_unpack_canonical does not work void afl_float_compcov_log_32(target_ulong cur_loc, float32 arg1, float32 arg2, - void* status) { + void *status) { cur_loc = (cur_loc >> 4) ^ (cur_loc << 8); cur_loc &= MAP_SIZE - 7; if (cur_loc >= afl_inst_rms) return; - // float_status* s = (float_status*)status; + // float_status*s = (float_status*)status; // FloatParts a = float32_unpack_canonical(arg1, s); // FloatParts b = float32_unpack_canonical(arg2, s); union afl_float32 a = {.f = arg1}; @@ -96,14 +96,14 @@ void afl_float_compcov_log_32(target_ulong cur_loc, float32 arg1, float32 arg2, } void afl_float_compcov_log_64(target_ulong cur_loc, float64 arg1, float64 arg2, - void* status) { + void *status) { cur_loc = (cur_loc >> 4) ^ (cur_loc << 8); cur_loc &= MAP_SIZE - 7; if (cur_loc >= afl_inst_rms) return; - // float_status* s = (float_status*)status; + // float_status*s = (float_status*)status; // FloatParts a = float64_unpack_canonical(arg1, s); // FloatParts b = float64_unpack_canonical(arg2, s); union afl_float64 a = {.f = arg1}; |