forked from pool/ibmswtpm2
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:
parent
2092d25107
commit
d3a5b29a0c
@ -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;
|
Loading…
x
Reference in New Issue
Block a user