Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.1
-
None
-
b9557296cb988c6007ed17f182a03c8205d5dffc
Description
If you try to open a PKCS12 file which does not contain a private key, QSslCertificate::importPkcs12 will crash. That function is not intended to open files which do not contain a private key, however a better behavior would be to return false in this case instead of crashing.
See attached for a self-contained example including PKCS12 file.
Attachments
For Gerrit Dashboard: QTBUG-62335 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
201802,1 | QSslKeyPrivate::fromEVP_PKEY - protect against invalid parameters | 5.9 | qt/qtbase | Status: ABANDONED | 0 | 0 |
201881,5 | Fix crash when reading a PKCS12 file with no private key | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |