Skip to content
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

dtrust-tool: Fix NULL dereference with pinpad #3051

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

Jakuje
Copy link
Member

@Jakuje Jakuje commented Feb 27, 2024

Thanks coverity:

CID 414970
CID 414971
CID 414972
CID 414973

Fixup #3026

Checklist
  • PKCS#11 module is tested
  • Windows minidriver is tested
  • macOS tokend is tested

@Jakuje
Copy link
Member Author

Jakuje commented Feb 27, 2024

@hamarituc can you have a look if this works for you? Can you test the tool with pinpad reader?

@Jakuje Jakuje added this to In progress in OpenSC 0.25.0 via automation Feb 27, 2024
@hamarituc
Copy link
Contributor

@hamarituc can you have a look if this works for you? Can you test the tool with pinpad reader?

Good spot. That was a pratfall from my side, which shouldn't have happened 🙈.

I can confirm your patch fixes the SEGFAULT. You may cherry-pick hamarituc@694ad25 as the pin pad entry requires to specify minimum and maxium PIN length, which is reasonable for non pin pad cases, too.

But I was not able to successfully test it with my pin pad reader. It's a Cherry Secure Board with an integrated smart card readers. But I wasn't able to use the pin pad function of this keyboard in the past. I suppose it's an issue with my reader and not the dtrust-tool.

Jakuje and others added 2 commits February 28, 2024 14:01
Thanks coverity:

CID 414970
CID 414971
CID 414972
CID 414973
@Jakuje
Copy link
Member Author

Jakuje commented Feb 28, 2024

Thanks. Pulled your commit. I also had issues with pinpad readers so I do not have a good one to recommend.

@xhanulik xhanulik merged commit 3f0175c into OpenSC:master Mar 5, 2024
42 of 44 checks passed
OpenSC 0.25.0 automation moved this from In progress to Done Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants