diff options
author | van Hauser <vh@thc.org> | 2020-05-26 13:19:57 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-26 13:19:57 +0200 |
commit | 996e1515b320fb2d44c367dea7b4d26f2d56f5df (patch) | |
tree | 6a298c420819aa9a22feae38bf88385d305d6e41 /llvm_mode/afl-llvm-rt.o.c | |
parent | 0994972c07333af3a1fecf694c6527517da966ca (diff) | |
download | afl++-996e1515b320fb2d44c367dea7b4d26f2d56f5df.tar.gz |
better performance compilation options for afl++ and targets
Diffstat (limited to 'llvm_mode/afl-llvm-rt.o.c')
-rw-r--r-- | llvm_mode/afl-llvm-rt.o.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c index a461bc03..b151de8e 100644 --- a/llvm_mode/afl-llvm-rt.o.c +++ b/llvm_mode/afl-llvm-rt.o.c @@ -789,12 +789,12 @@ void __sanitizer_cov_trace_pc_guard(uint32_t *guard) { void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) { u32 inst_ratio = 100; - u8 *x; + char *x; if (start == stop || *start) return; x = getenv("AFL_INST_RATIO"); - if (x) inst_ratio = atoi(x); + if (x) inst_ratio = (u32)atoi(x); if (!inst_ratio || inst_ratio > 100) { |