Skip to content

Commit

Permalink
tests: fix userproxytest missed NULL argument pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kai Zhang authored and simo5 committed Sep 7, 2023
1 parent ec46345 commit f52e60f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/userproxytest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f52e60f

Please sign in to comment.