mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
require value in env
This commit is contained in:
@ -113,7 +113,7 @@ void bind_to_free_cpu(afl_state_t *afl) {
|
|||||||
u8 lockfile[PATH_MAX] = "";
|
u8 lockfile[PATH_MAX] = "";
|
||||||
s32 i;
|
s32 i;
|
||||||
|
|
||||||
if (afl->afl_env.afl_no_affinity && !afl->afl_env.afl_try_affinity) {
|
if (afl->afl_env.afl_no_affinity = 1 && afl->afl_env.afl_try_affinity != 1) {
|
||||||
|
|
||||||
if (afl->cpu_to_bind != -1) {
|
if (afl->cpu_to_bind != -1) {
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ void bind_to_free_cpu(afl_state_t *afl) {
|
|||||||
|
|
||||||
if (!bind_cpu(afl, afl->cpu_to_bind)) {
|
if (!bind_cpu(afl, afl->cpu_to_bind)) {
|
||||||
|
|
||||||
if (afl->afl_env.afl_try_affinity) {
|
if (afl->afl_env.afl_try_affinity = 1) {
|
||||||
|
|
||||||
WARNF(
|
WARNF(
|
||||||
"Could not bind to requested CPU %d! Make sure you passed a valid "
|
"Could not bind to requested CPU %d! Make sure you passed a valid "
|
||||||
@ -2957,4 +2957,3 @@ void save_cmdline(afl_state_t *afl, u32 argc, char **argv) {
|
|||||||
*buf = 0;
|
*buf = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user