Debian Codegraph @

stubdom/vtpm_TPM_ChangeAuthAsymFinish.patch

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