Skip to content

Commit de3e3f1

Browse files
Merge pull request #44 from xdqi/main
clone: fix stack use after scope
2 parents 99ea52d + bfbccdd commit de3e3f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linux-user/syscall.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6563,9 +6563,10 @@ static void *clone_func(void *arg)
65636563
libafl_qemu_env = env;
65646564
if (libafl_new_thread_hooks) {
65656565
bool continue_execution = true;
6566+
int tid = sys_gettid();
65666567
struct libafl_new_thread_hook* h = libafl_new_thread_hooks;
65676568
while (h) {
6568-
continue_execution = h->callback(h->data, info->tid) && continue_execution;
6569+
continue_execution = h->callback(h->data, tid) && continue_execution;
65696570
h = h->next;
65706571
}
65716572
if (continue_execution) cpu_loop(env);

0 commit comments

Comments
 (0)