Hello, 2011/4/19 Jean-Michel Pouré - GOOZE <jmpo...@gooze.eu>: > Le lundi 18 avril 2011 à 10:29 +0200, Jean-Michel Pouré - GOOZE a > écrit : >> GNU/Linux works fine. Only Windows is impacted. Please find below the >> result of pkcs15-init.exe -E with with debug=9 > > Did more testing this morning with other smartcards (than the Feitian > PKI). pkcs15-init.exe -E crashes under Windows x64. I could not test > Windows x32. But all versions of GNU/Linux work. This seems to be a > Windows x64 issue. Quite blocking for a pre-release.
The crash is not nice but the blocking impact is questionable - it happened on cleanup. I found the culprit, but I don't really know the reason. I don't quite know why the dummy label was necessary in the first place (Viktor?) or why freeing it fails on Windows x64. IMHO the memory handling and the call stack is not the easiest to comprehend in that part of OpenSC. Hints and explanations are welcome.
From 1712f3e4f95a18d43b62f498bf7a81bd3db564dd Mon Sep 17 00:00:00 2001 From: Martin Paljak <mar...@martinpaljak.net> Date: Tue, 19 Apr 2011 12:56:37 +0300 Subject: [PATCH] Fix a crash on Windows, where pkcs15-tool -E would always crash in sc_pkcs15_free_card() --- src/tools/pkcs15-init.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/tools/pkcs15-init.c b/src/tools/pkcs15-init.c index 0b3fa39..8d63c0a 100644 --- a/src/tools/pkcs15-init.c +++ b/src/tools/pkcs15-init.c @@ -648,7 +648,6 @@ do_erase(sc_card_t *in_card, struct sc_profile *profile) p15card = sc_pkcs15_card_new(); p15card->card = in_card; - p15card->tokeninfo->label = strdup("Dummy PKCS#15 object"); ignore_cmdline_pins++; if (opt_bind_to_aid) { -- 1.7.1
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel