[PATCH v2 13/16] tpm: Check outgoing command size

Tom Rini trini at konsulko.com
Fri Jul 16 17:52:05 CEST 2021


On Thu, May 13, 2021 at 07:39:29PM -0600, Simon Glass wrote:

> 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 at chromium.org>
> Reported-by: Coverity (CID: 331152)

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210716/f723118d/attachment.sig>


More information about the U-Boot mailing list