Skip to content

Fix Pkcs11::new bug preventing PKCS#11 library loading #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

mematthias
Copy link
Contributor

This pull request is a small excerpt from the #289 PR.

Summary

This PR fixes a critical issue in Pkcs11::new that prevented my PKCS#11 library from being loaded correctly. The root cause was the use of MaybeUninit::uninit() in a context where zero-initialized or null-assigned variables were required. This has been resolved by using explicitly null-assigned variables instead.

Changes

  • Fixed bug in Pkcs11::new related to improper initialization, resolving library loading failure

…ll-assigned variables; this resolves an issue that prevented my PKCS#11 library from loading

Signed-off-by: mematthias <[email protected]>
Copy link
Collaborator

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good to me!

Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 thanks!

@wiktor-k wiktor-k merged commit 0169642 into parallaxsecond:main Jun 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants