Merge "Avoid SIGSEGV if attest key generation fails." am: 14604af9d1
am: b07682e3db
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1915277 Change-Id: I49f0f1d6daea48ac0a92bedb0bf3db8f4ff4e87c
This commit is contained in:
commit
7f3d007475
1 changed files with 2 additions and 0 deletions
|
@ -583,6 +583,7 @@ TEST_P(AttestKeyTest, AllEcCurves) {
|
|||
attest_key, &attested_key_blob, &attested_key_characteristics,
|
||||
&attested_key_cert_chain));
|
||||
|
||||
ASSERT_GT(attested_key_cert_chain.size(), 0);
|
||||
CheckedDeleteKey(&attested_key_blob);
|
||||
|
||||
AuthorizationSet hw_enforced = HwEnforcedAuthorizations(attested_key_characteristics);
|
||||
|
@ -612,6 +613,7 @@ TEST_P(AttestKeyTest, AllEcCurves) {
|
|||
attest_key, &attested_key_blob, &attested_key_characteristics,
|
||||
&attested_key_cert_chain));
|
||||
|
||||
ASSERT_GT(attested_key_cert_chain.size(), 0);
|
||||
CheckedDeleteKey(&attested_key_blob);
|
||||
CheckedDeleteKey(&attest_key.keyBlob);
|
||||
|
||||
|
|
Loading…
Reference in a new issue