Accepting request 1164546 from home:michals
OBS-URL: https://build.opensuse.org/request/show/1164546 OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=35
This commit is contained in:
parent
9330ec33ae
commit
89f00ada9d
@ -0,0 +1,30 @@
|
||||
From 1f64c0bf768f05bfb1980fa354d99a29b26ce99a Mon Sep 17 00:00:00 2001
|
||||
From: Michal Suchanek <msuchanek@suse.de>
|
||||
Date: Mon, 17 Aug 2020 19:28:51 +0200
|
||||
Subject: [PATCH] TcpServerPosix: Fix use of uninitialized value.
|
||||
|
||||
ReadUINT32 does not modify the output when it fails. Do not use the
|
||||
output in that case.
|
||||
|
||||
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
||||
---
|
||||
src/TcpServerPosix.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/TcpServerPosix.c b/src/TcpServerPosix.c
|
||||
index ca9e2fd..b776448 100644
|
||||
--- a/src/TcpServerPosix.c
|
||||
+++ b/src/TcpServerPosix.c
|
||||
@@ -264,7 +264,8 @@ PlatformServer(
|
||||
{
|
||||
uint32_t actHandle;
|
||||
ok = ReadUINT32(s, &actHandle);
|
||||
- WriteUINT32(s, _rpc__ACT_GetSignaled(actHandle));
|
||||
+ if(ok)
|
||||
+ WriteUINT32(s, _rpc__ACT_GetSignaled(actHandle));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
--
|
||||
2.42.0
|
||||
|
@ -2,7 +2,6 @@
|
||||
Thu Apr 4 08:55:49 UTC 2024 - Michal Suchanek <msuchanek@suse.de>
|
||||
|
||||
- Update to version 183-2024-03-27
|
||||
* Drop ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch - addressed upstream
|
||||
* Drop ibmswtpm2-NVDynamic-Fix-use-of-uninitialized-value.patch - addressed upstream
|
||||
* Drop ibmswtpm2-Add-support-for-OpenSSL-3.2.x.patch - merged upstream
|
||||
|
||||
|
@ -32,6 +32,7 @@ Group: Development/Tools/Other
|
||||
URL: https://github.com/kgoldman/ibmswtpm2
|
||||
Source: https://github.com/kgoldman/ibmswtpm2/archive/rev%{download_version}.tar.gz#/%{name}-%{download_version}.tar.gz
|
||||
Patch0: makefile.patch
|
||||
Patch1: ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch
|
||||
BuildRequires: libopenssl-devel >= 1.0
|
||||
|
||||
%description
|
||||
|
Loading…
Reference in New Issue
Block a user