summaryrefslogtreecommitdiff
path: root/stubdom/vtpm_TPM_ChangeAuthAsymFinish.patch
blob: 10b89a4c3a04e5edfcf4ef376178167fad07a3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: 'memcmp' reading 20 bytes from a region of size 8 [-Werror=stringop-overflow=]
--- a/tpm/tpm_deprecated.c
+++ b/tpm/tpm_deprecated.c
@@ -434,7 +434,7 @@ TPM_RESULT TPM_ChangeAuthAsymFinish(TPM_
   tpm_hmac_final(&hmac_ctx, b1.digest);
   /* 6. The TPM SHALL compare b1 with newAuthLink. The TPM SHALL
         indicate a failure if the values do not match. */
-  if (memcmp(&b1, &newAuthLink, sizeof(TPM_HMAC))) {
+  if (memcmp(&b1, newAuthLink, sizeof(TPM_HMAC))) {
     debug("TPM_ChangeAuthAsymFinish(): newAuthLink value does not match.");
     return TPM_FAIL;
   }