Closed
Bug 125373
Opened 23 years ago
Closed 23 years ago
crlutil crashes upon certain errors from CRL_ImportCRL
Categories
(NSS :: Tools, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.4
People
(Reporter: julien.pierre, Assigned: wtc)
Details
When calling CRL_ImportCRL, crlutil does the following :
193 crl = CERT_ImportCRL (certHandle, &crlDER, url, type, NULL);
194 if (!crl) {
195 const char *errString;
196
197 errString = SECU_Strerror(PORT_GetError());
198 if (PORT_Strlen (errString) == 0)
199 SECU_PrintError
200 (progName, "CRL is not import (error: input CRL is
not up to date.)");
In some cases, SECU_Strerror(Port_GetError()) returns NULL . crlutil then
crashes in the PORT_Strlen . The fix is to check for errString first in the if
statement.
| Reporter | ||
Comment 1•23 years ago
|
||
Checking in crlutil.c;
/cvsroot/mozilla/security/nss/cmd/crlutil/crlutil.c,v <-- crlutil.c
new revision: 1.7; previous revision: 1.6
done
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.4
You need to log in
before you can comment on or make changes to this bug.
Description
•