Skip to content

Commit ddc4a97

Browse files
final fix for #18
1 parent d6ff420 commit ddc4a97

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

linux-user/syscall.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8496,12 +8496,10 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
84968496
envc = 0;
84978497
guest_envp = arg3;
84988498
for (gp = guest_envp; gp; gp += sizeof(abi_ulong)) {
8499-
if (!get_user_ual(addr, gp)) {
8499+
if (get_user_ual(addr, gp))
85008500
return -TARGET_EFAULT;
8501-
}
8502-
if (!addr) {
8501+
if (!addr)
85038502
break;
8504-
}
85058503
/* QASAN: remove preloaded library */
85068504
if (use_qasan && !getenv("QASAN_PRESERVE_EXECVE")) {
85078505
/*

0 commit comments

Comments
 (0)