Twuk / eid-mw

Automatically exported from code.google.com/p/eid-mw
0 stars 0 forks source link

Crash if card is removed during C_GetSlotInfo execution #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Insert an eID-card
2. Call C_GetSlotInfo (or C_GetSlotList with true for only the slots with a 
token present)
3. While the call in progress, remove the card from the reader

What is the expected output? What do you see instead?
A way to handle this situation is what you'd expect. This immediately causes an 
EXC_BAD_ACCESS signal, crashing the program.

What version of the product are you using? On what operating system?
I tried this with version 4.0.6 and 4.0.7 of the middleware, thus using the 
relatively new Cryptoki-based API. My development machine runs OS X Mavericks.

Please provide any additional information below.
I tried it both natively in C and using the Java PKCS11 wrapper. Both yield 
exactly the same result.

Original issue reported on code.google.com by and...@berth.be on 13 Jun 2014 at 6:20

GoogleCodeExporter commented 9 years ago
Hello Andrew,

Thank you for reporting this.

I had a look at this, and indeed we have an issue with unhandled errors there

Original comment by frederik...@gmail.com on 17 Jun 2014 at 2:29

GoogleCodeExporter commented 9 years ago
Fixed the unhamdled errors in revision 1485

Original comment by frederik...@gmail.com on 9 Jul 2014 at 10:50