From 699faa849bee52c7671e7b5297715f7ac53bd022 Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Wed, 9 Oct 2024 11:23:32 +0000 Subject: [PATCH] trusty: tipc-test: Fix D argument The D flag requires an argument so it should be followed by a colon in sopts. Adding the missing colon is necessary to prevent a segfault. Test: path/to/tipc-test -D VSOCK:200:1 Bug None Change-Id: I78119b7e42aba5d30b62d88ff5d94c01dbc2eb64 --- trusty/libtrusty/tipc-test/tipc_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trusty/libtrusty/tipc-test/tipc_test.c b/trusty/libtrusty/tipc-test/tipc_test.c index 3cf0c05f9..121837dc0 100644 --- a/trusty/libtrusty/tipc-test/tipc_test.c +++ b/trusty/libtrusty/tipc-test/tipc_test.c @@ -67,7 +67,7 @@ static const char *main_ctrl_name = "com.android.ipc-unittest.ctrl"; static const char* receiver_name = "com.android.trusty.memref.receiver"; static const size_t memref_chunk_size = 4096; -static const char* _sopts = "hsvDS:t:r:m:b:B:"; +static const char* _sopts = "hsvD:S:t:r:m:b:B:"; /* clang-format off */ static const struct option _lopts[] = { {"help", no_argument, 0, 'h'},