]> git.proxmox.com Git - swtpm.git/commit
swtpm: Initialize ptm_est type to avoid uninitialized bytes
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 28 Sep 2018 12:23:13 +0000 (08:23 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 28 Sep 2018 18:37:35 +0000 (14:37 -0400)
commitfb8fb15965560a3c5c8b40a65cc3b4b740e2b7c0
tree129ab06e0be0f4d1bac98390730b38b9fd6be1e5
parent86dac14a18e74f9d0100810ee23591aea805e795
swtpm: Initialize ptm_est type to avoid uninitialized bytes

Valgrind complains about uninitialized bytes being accessed by a writev()
call in libfuse. It points to a line in the error branch
'error_not_running', but the error does not seem to come from there.
Instead, if we initialize ptm_est to zeros the problem goes away.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/swtpm/cuse_tpm.c