Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repart: avoid use of uninitialized TPM2B_PUBLIC data
The 'TPM2B public' struct is only initialized if the public key is non-NULL, however, it is unconditionally passed to tpm2_calculate_sealing_policy, resulting in use of uninitialized data. If the uninitialized data is lucky enough to be all zeroes, this results eventually results in an error message from tpm2_calculate_name about an unsupported nameAlg field value. Signed-off-by: Daniel P. Berrangé <[email protected]> (cherry picked from commit a3ad5c3) Resolves: RHEL-56793
- Loading branch information