commit | e463bb3f1c6b7e0768bce92afa10c8b175c35146 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 13 19:39:29 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Jul 15 18:42:05 2021 -0400 |
tree | 79cb881bd750eeccae6f9458c7c61734bfe0a8ae | |
parent | 43b82f56c1ae6d7cd74103189d93fd7bb5a32eea [diff] |
tpm: Check outgoing command size In tpm_sendrecv_command() the command buffer is passed in. If a mistake is somehow made in setting this up, the size could be out of range. Add a sanity check for this. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 331152)