]> git.proxmox.com Git - libtpms.git/commit
tpm2: Add maxSize parameter to TPM2B_Marshal for sanity checks
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 21 Jun 2021 19:10:14 +0000 (15:10 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 23 Jun 2021 15:51:34 +0000 (11:51 -0400)
commit7981d9ad90a5043a05004e4ca7b46beab8ca7809
tree176f267b47461741242277f4cb0beb63b013b177
parent2f30d620d3c053f20d38b54bf76ac0907821d263
tpm2: Add maxSize parameter to TPM2B_Marshal for sanity checks

Add maxSize parameter to TPM2B_Marshal and assert on it checking
the size of the data intended to be marshaled versus the maximum
buffer size.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/tpm2/Marshal.c
src/tpm2/Marshal_fp.h
src/tpm2/NVMarshal.c