commit | 0594486b639849b47d762c76f28730edbf648dc7 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | Wed Nov 06 16:36:00 2019 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Wed Nov 13 10:25:36 2019 -0500 |
tree | f9070c75f5ed47ba8b9241ef58035c4a140fec15 | |
parent | 0672bd3b6affd414ac8721686a0ed1bef8fd73b3 [diff] |
tcgbios: Check for enough bytes returned from TPM2_GetCapability When querying a TPM 2.0 for its PCRs, make sure that we get enough bytes from it in a response that did not indicate a failure. Basically we are defending against a TPM 2.0 sending responses that are not compliant to the specs. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>