Ticket #124 (new defect)

Opened 2 years ago

patch to fix: pkcs11-tool segfaults during test if no public key is found for a private key

Reported by: harningt Owned by: opensc-devel@…
Priority: normal Milestone:
Component: tools Version: 0.11.1
Severity: normal Keywords: pkcs11-tool
Cc:

Description

While working with pkcs11-tool, I found that if there was no public key (to obtain the modulus of the private key), then it would segfault during a memcopy during the signature test.

Attached is a patch that checks for modulus length returns for errors to prevent such segfaults.

Attachments

pkcs11-tool-test.patch (1.5 kB) - added by harning@… 2 years ago.

Change History

Changed 2 years ago by harning@…

Note: See TracTickets for help on using tickets.