backport upstream patch to fix userproxytest bug

(cherry picked from commit 8831295df75d9ff5987ac94712d998bdbd57a6d5)
This commit is contained in:
laokz 2023-09-08 14:50:00 +08:00 committed by openeuler-sync-bot
parent 26f2497c31
commit f0a90c4950
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,31 @@
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

View File

@ -7,7 +7,7 @@
Name: gssproxy
Version: 0.9.1
Release: 3
Release: 4
Summary: GSSAPI Proxy
License: MIT
URL: https://github.com/gssapi/gssproxy
@ -15,6 +15,7 @@ Source0: https://github.com/gssapi/%{name}/releases/download/v%{version}/%{name}
Patch1: backport-Typo-doc-fix.patch
Patch2: backport-More-typo-fixes-to-silence-Debian-lintian-typo-in-ma.patch
Patch3: backport-tests-fix-userproxytest-missed-NULL-argument-pointer.patch
Requires: krb5 keyutils libverto-module-base libini_config
Requires(post): systemd
@ -113,6 +114,9 @@ mkdir -p %{buildroot}%{gpstatedir}/rcache
%{_mandir}/man8/gssproxy-mech.8*
%changelog
* Fri Sep 8 2023 laokz <zhangkai@iscas.ac.cn> - 0.9.1-4
- backport upstream patch to fix userproxytest bug
* Fri Jul 7 2023 yixiangzhike <yixiangzhike007@163.com> - 0.9.1-3
- enable make check