rust-cryptoki icon indicating copy to clipboard operation
rust-cryptoki copied to clipboard

Do not call C_Finalize if not initialized

Open Geobert opened this issue 3 months ago • 0 comments

Hi,

I’m in a mixed env with Rust code used in a C++ program. C++ side initialize the pkcs11 lib so Rust side can’t. If Rust side calls C_Finalize, I get a random crash, which, I think, is because of a double free?

Geobert avatar Apr 09 '24 08:04 Geobert