We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tpm2PcrRead is doing a member-by-member copy of the input TPML_PCR_SELECTION parameter rather than marshaling it:
Tpm2PcrRead
TPML_PCR_SELECTION
edk2/SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
Lines 359 to 364 in b7f8779
TPM2_PCR_READ_COMMAND
sizeofSelect != PCR_SELECT_MAX
Further down, Tpm2PcrAllocate also marshals an input TPML_PCR_SELECTION parameter and it is done correctly:
Tpm2PcrAllocate
Lines 515 to 524 in b7f8779
The text was updated successfully, but these errors were encountered:
Yes, agree this is a bug. Do you want to propose a patch?
Sorry, something went wrong.
No branches or pull requests
Tpm2PcrRead
is doing a member-by-member copy of the inputTPML_PCR_SELECTION
parameter rather than marshaling it:edk2/SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
Lines 359 to 364 in b7f8779
This results in the
TPM2_PCR_READ_COMMAND
bytes being malformed wheneversizeofSelect != PCR_SELECT_MAX
.Further down,
Tpm2PcrAllocate
also marshals an inputTPML_PCR_SELECTION
parameter and it is done correctly:edk2/SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
Lines 515 to 524 in b7f8779
The text was updated successfully, but these errors were encountered: