Your message dated Wed, 23 Aug 2023 13:54:13 +0200 with message-id <[email protected]> and subject line Re: pkcs15-init aborts with failed assertion when operating on Feitian smartcards has caused the Debian Bug report #868299, regarding pkcs15-init aborts with failed assertion when operating on Feitian smartcards to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 868299: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868299 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: opensc Version: 0.16.0-3 When invoking pkcs15-init -E to erase a Feitian smartcard, the command aborts with the following message: pkcs15-init: sc.c:721: sc_file_valid: Assertion `file != NULL' failed. Aborted This bug has already been fixed upstream: https://github.com/OpenSC/OpenSC/commit/f64c71da28d1c1401445f6e8fa45bc079d5b6cd9 Please consider backporting the fix (see patch below). I can confirm that applying the patch fixes the issue for me. Index: opensc-0.16.0/src/libopensc/card-entersafe.c =================================================================== --- opensc-0.16.0.orig/src/libopensc/card-entersafe.c +++ opensc-0.16.0/src/libopensc/card-entersafe.c @@ -493,7 +493,7 @@ static int entersafe_select_fid(sc_card_ path.len=2; r = iso_ops->select_file(card,&path,&file); - if(r) sc_file_free(file); + if(r && file) sc_file_free(file); SC_TEST_RET(card->ctx, SC_LOG_DEBUG_NORMAL, r, "APDU transmit failed"); /* update cache */ Thanks, Sammy. Disclaimer: http://transtrend.com/disclaimer.txt
--- End Message ---
--- Begin Message ---Version: 0.17.0~rc1-1
--- End Message ---

