32 lines
876 B
Diff
32 lines
876 B
Diff
|
|
From f52e60fad1e202a8f9c06ec6ce8bada69c62c93c Mon Sep 17 00:00:00 2001
|
||
|
|
From: Kai Zhang <zhangkai@iscas.ac.cn>
|
||
|
|
Date: Wed, 6 Sep 2023 21:41:15 +0800
|
||
|
|
Subject: [PATCH] tests: fix userproxytest missed NULL argument pointer
|
||
|
|
|
||
|
|
Execv syscall needs the argument array of pointers must
|
||
|
|
be terminated by a null pointer, otherwise the garbage
|
||
|
|
data might break the test.
|
||
|
|
|
||
|
|
Signed-off-by: Kai Zhang <zhangkai@iscas.ac.cn>
|
||
|
|
---
|
||
|
|
tests/userproxytest.c | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tests/userproxytest.c b/tests/userproxytest.c
|
||
|
|
index d035c8f..8aea41a 100644
|
||
|
|
--- a/tests/userproxytest.c
|
||
|
|
+++ b/tests/userproxytest.c
|
||
|
|
@@ -17,7 +17,8 @@ char *srv_args[] = {
|
||
|
|
"-u", "-i",
|
||
|
|
"-d", "--debug-level=1",
|
||
|
|
"-s", "./testdir/userproxytest.sock",
|
||
|
|
- "--idle-timeout=3"
|
||
|
|
+ "--idle-timeout=3",
|
||
|
|
+ NULL
|
||
|
|
};
|
||
|
|
|
||
|
|
int mock_activation_sockets(void)
|
||
|
|
--
|
||
|
|
2.40.1
|
||
|
|
|