diff options
author | 2016-09-12 13:43:30 +0300 | |
---|---|---|
committer | 2016-09-15 16:04:21 +0300 | |
commit | ebfd7532e985818a327906e011f3e43c8ddfdd74 (patch) | |
tree | 33c2acaeeba0454ace929e77fd7ab228e7870edc /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | tpm: constify TPM 1.x header structures (diff) | |
download | wireguard-linux-ebfd7532e985818a327906e011f3e43c8ddfdd74.tar.xz wireguard-linux-ebfd7532e985818a327906e011f3e43c8ddfdd74.zip |
tpm: add check for minimum buffer size in tpm_transmit()
tpm_transmit() does not check that bufsiz is at least TPM_HEADER_SIZE
before accessing data. This commit adds this check and returns -EINVAL
if it fails.
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions