Hello community,

here is the log from the commit of package ibmswtpm2 for openSUSE:Factory 
checked in at 2020-01-12 23:25:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ibmswtpm2 (Old)
 and      /work/SRC/openSUSE:Factory/.ibmswtpm2.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ibmswtpm2"

Sun Jan 12 23:25:31 2020 rev:7 rq:763642 version:1332

Changes:
--------
--- /work/SRC/openSUSE:Factory/ibmswtpm2/ibmswtpm2.changes      2019-07-11 
13:16:10.162809430 +0200
+++ /work/SRC/openSUSE:Factory/.ibmswtpm2.new.6675/ibmswtpm2.changes    
2020-01-12 23:26:33.502864375 +0100
@@ -1,0 +2,8 @@
+Mon Dec 23 12:06:22 UTC 2019 - mgerstner <matthias.gerst...@suse.com>
+
+- Add ibmswtpm2-fix-empty-decrypt.patch: Fix a corner case in the emulator
+  that causes an error when trying to RSA-decrypt an empty message
+  (bsc#1159510). This fix was confirmed to be by the upstream author and is
+  supposed to be contained in the next release.
+
+-------------------------------------------------------------------

New:
----
  ibmswtpm2-fix-empty-decrypt.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ibmswtpm2.spec ++++++
--- /var/tmp/diff_new_pack.a0dRSQ/_old  2020-01-12 23:26:33.878864514 +0100
+++ /var/tmp/diff_new_pack.a0dRSQ/_new  2020-01-12 23:26:33.890864518 +0100
@@ -34,6 +34,7 @@
 Source:         
https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm%{version}.tar.gz
 Patch1:         makefile.patch
 Patch2:         ibmswtpm2-fix-uninitialized.patch
+Patch3:         ibmswtpm2-fix-empty-decrypt.patch
 BuildRequires:  libopenssl-devel >= 1.0
 
 %description

++++++ ibmswtpm2-fix-empty-decrypt.patch ++++++
Index: ibmswtpm2-1119/src/CryptRsa.c
===================================================================
--- ibmswtpm2-1119.orig/src/CryptRsa.c
+++ ibmswtpm2-1119/src/CryptRsa.c
@@ -469,7 +469,7 @@ RSAES_Decode(
     pSize++;
     // Make sure that pSize has not gone over the end and that there are at 
least 8
     // bytes of pad data.
-    fail = (pSize >= coded->size) | fail;
+    fail = (pSize > coded->size) | fail;
     fail = ((pSize - 2) < 8) | fail;
     if((message->size < (UINT16)(coded->size - pSize)) || fail)
        return TPM_RC_VALUE;

Reply via email to