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)
7.4
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Fraser Tweedale
ipa-qe
:
Depends On: 1460016
Blocks:
  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
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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
    https://bugzilla.mozilla.org/show_bug.cgi?id=1371147

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