fixed memory leak
fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32324 sc_enum_apps() causes card->cache.current_ef to be allocated for IAS/ECC, but not freed if any other error occurs during initialization. since sc_enum_apps() is called anyway during PKCS#15 initialization. Having this at the card driver level (instead of the PKCS#15 level) is not needed.
This commit is contained in:
parent
ce0d409205
commit
83162c5c87
|
@ -644,8 +644,6 @@ iasecc_init_cpx(struct sc_card *card)
|
|||
_sc_card_add_rsa_alg(card, 1024, flags, 0);
|
||||
_sc_card_add_rsa_alg(card, 2048, flags, 0);
|
||||
|
||||
LOG_TEST_RET(ctx, sc_enum_apps(card), "Enumerate apps failed");
|
||||
|
||||
LOG_FUNC_RETURN(ctx, SC_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue