Bug 1460019 - PK11Store.getEncryptedPrivateKeyInfo() segfault if export fails
PK11Store.getEncryptedPrivateKeyInfo() segfault if export fails
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: jss (Show other bugs)
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Fraser Tweedale
Depends On: 1460016
  Show dependency treegraph
Reported: 2017-06-08 16:46 EDT by Matthew Harmsen
Modified: 2017-08-03 20:24 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1460016
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:46 EDT

  None (edit)
Description Matthew Harmsen 2017-06-08 16:46:14 EDT
+++ This bug was initially created as a clone of Bug #1460016 +++

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

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