Skip to content

Commit d6ff420

Browse files
try a better fix for #18
1 parent 15291fc commit d6ff420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux-user/syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8497,13 +8497,13 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
84978497
guest_envp = arg3;
84988498
for (gp = guest_envp; gp; gp += sizeof(abi_ulong)) {
84998499
if (!get_user_ual(addr, gp)) {
8500-
goto execve_efault;
8500+
return -TARGET_EFAULT;
85018501
}
85028502
if (!addr) {
85038503
break;
85048504
}
85058505
/* QASAN: remove preloaded library */
8506-
if (!getenv("QASAN_PRESERVE_EXECVE")) {
8506+
if (use_qasan && !getenv("QASAN_PRESERVE_EXECVE")) {
85078507
/*
85088508
* If we need to clear the LD_PRELOAD list, run the memory
85098509
* lock and unlock methods to inspect the contents within

0 commit comments

Comments
 (0)