mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
regression fix
This commit is contained in:
@ -489,7 +489,7 @@
|
||||
|
||||
/* Minimum length of a queue input to be evaluated for "is_ascii"? */
|
||||
|
||||
#define AFL_TXT_MIN_LEN 16
|
||||
#define AFL_TXT_MIN_LEN 12
|
||||
|
||||
/* Maximum length of a queue input to be evaluated for "is_ascii"? */
|
||||
|
||||
|
@ -59,7 +59,7 @@ static list_t fsrv_list = {.element_prealloc_count = 0};
|
||||
|
||||
static void fsrv_exec_child(afl_forkserver_t *fsrv, char **argv) {
|
||||
|
||||
if (fsrv->qemu_mode || fsrv->cs_mode) {
|
||||
if (fsrv->qemu_mode || fsrv->frida_mode || fsrv->cs_mode) {
|
||||
|
||||
setenv("AFL_DISABLE_LLVM_INSTRUMENTATION", "1", 0);
|
||||
|
||||
|
@ -33,11 +33,15 @@ void cmplog_exec_child(afl_forkserver_t *fsrv, char **argv) {
|
||||
|
||||
setenv("___AFL_EINS_ZWEI_POLIZEI___", "1", 1);
|
||||
|
||||
if (fsrv->qemu_mode) { setenv("AFL_DISABLE_LLVM_INSTRUMENTATION", "1", 0); }
|
||||
if (fsrv->qemu_mode || fsrv->frida_mode || fsrv->cs_mode) {
|
||||
|
||||
setenv("AFL_DISABLE_LLVM_INSTRUMENTATION", "1", 0);
|
||||
|
||||
}
|
||||
|
||||
if (!fsrv->qemu_mode && !fsrv->frida_mode && argv[0] != fsrv->cmplog_binary) {
|
||||
|
||||
argv[0] = fsrv->cmplog_binary;
|
||||
fsrv->target_path = argv[0] = fsrv->cmplog_binary;
|
||||
|
||||
}
|
||||
|
||||
|
@ -1298,7 +1298,8 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
if (afl->is_main_node == 1 && afl->schedule != FAST && afl->schedule != EXPLORE) {
|
||||
if (afl->is_main_node == 1 && afl->schedule != FAST &&
|
||||
afl->schedule != EXPLORE) {
|
||||
|
||||
FATAL("-M is compatible only with fast and explore -p power schedules");
|
||||
|
||||
|
@ -92,7 +92,7 @@ static u32 measure_preemption(u32 target_ms) {
|
||||
volatile u32 v1, v2 = 0;
|
||||
|
||||
u64 st_t, en_t, st_c, en_c, real_delta, slice_delta;
|
||||
//s32 loop_repeats = 0;
|
||||
// s32 loop_repeats = 0;
|
||||
|
||||
st_t = get_cur_time_us();
|
||||
st_c = get_cpu_usage_us();
|
||||
@ -113,7 +113,7 @@ repeat_loop:
|
||||
|
||||
if (en_t - st_t < target_ms * 1000) {
|
||||
|
||||
//loop_repeats++;
|
||||
// loop_repeats++;
|
||||
goto repeat_loop;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user