diff options
author | hexcoder- <heiko@hexco.de> | 2019-12-10 11:00:39 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-12-10 11:00:39 +0100 |
commit | 31f7404272b7b0adacbbd30ae876a9f6274389c2 (patch) | |
tree | 6c355ce396b98f050147e480cd9c65e9fed5404f | |
parent | cb4a20ba6d2b5cae008dab7182254ac79950dc66 (diff) | |
download | afl++-31f7404272b7b0adacbbd30ae876a9f6274389c2.tar.gz |
fixes for FreeBSD: libtokencap, free cpu detection threshold
-rw-r--r-- | libtokencap/Makefile | 1 | ||||
-rw-r--r-- | src/afl-fuzz-init.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/libtokencap/Makefile b/libtokencap/Makefile index 1c80edf2..ff9293a8 100644 --- a/libtokencap/Makefile +++ b/libtokencap/Makefile @@ -31,7 +31,6 @@ ifeq "$(shell uname)" "Darwin" endif ifeq "$(shell uname)" "FreeBSD" TARGETS = libtokencap.so - LDFLAGS += -ldl endif ifeq "$(shell uname)" "OpenBSD" TARGETS = libtokencap.so diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 2c2565e4..c91b7bb7 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -139,7 +139,7 @@ void bind_to_free_cpu(void) { for (i = 0; i < proccount; i++) { #if defined(__FreeBSD__) - if (procs[i].ki_oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 10) + if (procs[i].ki_oncpu < sizeof(cpu_used) && procs[i].ki_pctcpu > 60) cpu_used[procs[i].ki_oncpu] = 1; #elif defined(__DragonFly__) if (procs[i].kp_lwp.kl_cpuid < sizeof(cpu_used) && |