forked from pool/ibmswtpm2
- Update to upstream version 1637 * fixes build of ibmtss 1.5.0 * Refresh makefile.patch * Drop upstreamed patches - ibmswtpm2-fix-uninitialized.patch - ibmswtpm2-fix-empty-decrypt.patch * Fix use of uninitialized value: + ibmswtpm2-TcpServerPosix-Fix-use-of-uninitialized-value.patch OBS-URL: https://build.opensuse.org/request/show/827401 OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=20
31 lines
880 B
Diff
31 lines
880 B
Diff
From 03efa66788ca4828392664c4f6123ad4f190c865 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 20fcb29352a2..5bcc47aaeac7 100644
|
|
--- a/src/TcpServerPosix.c
|
|
+++ b/src/TcpServerPosix.c
|
|
@@ -278,7 +278,8 @@ PlatformServer(
|
|
{
|
|
UINT32 actHandle;
|
|
ok = ReadUINT32(s, &actHandle);
|
|
- WriteUINT32(s, _rpc__ACT_GetSignaled(actHandle));
|
|
+ if(ok)
|
|
+ WriteUINT32(s, _rpc__ACT_GetSignaled(actHandle));
|
|
break;
|
|
}
|
|
default:
|
|
--
|
|
2.26.2
|
|
|