mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
code start and end in qemu env vars
This commit is contained in:
@ -181,6 +181,11 @@ static void afl_setup(void) {
|
||||
afl_end_code = (abi_ulong)-1;
|
||||
|
||||
}
|
||||
|
||||
if (getemv("AFL_CODE_START"))
|
||||
afl_start_code = strtoll(getenv("AFL_CODE_START"), NULL, 16);
|
||||
if (getemv("AFL_CODE_END"))
|
||||
afl_end_code = strtoll(getenv("AFL_CODE_END"), NULL, 16);
|
||||
|
||||
/* Maintain for compatibility */
|
||||
if (getenv("AFL_QEMU_COMPCOV")) { afl_compcov_level = 1; }
|
||||
|
Reference in New Issue
Block a user