Bug 1460016 - PK11Store.getEncryptedPrivateKeyInfo() segfault if export fails
PK11Store.getEncryptedPrivateKeyInfo() segfault if export fails
Status: NEW
Product: Fedora
Classification: Fedora
Component: jss (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fraser Tweedale
Fedora Extras Quality Assurance
Depends On:
Blocks: 1460019
  Show dependency treegraph
Reported: 2017-06-08 16:44 EDT by Matthew Harmsen
Modified: 2017-08-15 04:17 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1460019 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 1371147 None None None 2017-06-08 16:44 EDT

  None (edit)
Description Matthew Harmsen 2017-06-08 16:44:40 EDT
PK11Store.getEncryptedPrivateKeyInfo() segfaults if export fails

Steps to reproduce:

    Use PK11Store.getEncryptedPrivateKeyInfo() with Thales nethsm.

Actual results:

    PK11_ExportEncryptedPrivKeyInfo returning NULL is not being handled
    properly, causing segfault.

Expected results:

    Detect this condition and raise a
    TokenException instead.

Additional Information:

    Patch is attached to upstream bug
Comment 1 Jan Kurik 2017-08-15 04:17:05 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Note You need to log in before you can comment on or make changes to this bug.