commit | aa8a75840fd0788ef422d0f40f6bd85c9ce9afe6 | [log] [tgz] |
---|---|---|
author | Brian J Murray <brianjmurray@google.com> | Mon Dec 06 22:13:50 2021 -0800 |
committer | Brian J Murray <brianjmurray@google.com> | Wed Dec 08 10:59:22 2021 -0800 |
tree | 80e5befb02ea1140653c32741f90f235521c6130 | |
parent | 4c12800dd80134b666ebe418888efd56498dd8fc [diff] |
Avoid SIGSEGV if attest key generation fails. Add an explicit check that `attested_key_cert_chain.size() > 0`. Bug: 209672758 Test: atest 'PerInstance/AttestKeyTest#AllEcCurves/1_android_hardware_security_keymint_IKeyMintDevice_strongbox' Signed-off-by: Brian J Murray <brianjmurray@google.com> Change-Id: I4f7cb4fb1a30f26e6ef15c54714699f6ae91ba36