SHA256
1
0
forked from pool/ibmswtpm2

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:
Michal Suchanek 2024-04-04 09:21:48 +00:00 committed by Git OBS Bridge
parent 9330ec33ae
commit 89f00ada9d
3 changed files with 31 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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