Accepting request 828202 from home:michals

OBS-URL: https://build.opensuse.org/request/show/828202
OBS-URL: https://build.opensuse.org/package/show/security/ibmswtpm2?expand=0&rev=21
This commit is contained in:
Michal Suchanek 2020-08-20 14:16:20 +00:00 committed by Git OBS Bridge
parent 2092d25107
commit d3a5b29a0c

View File

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