certutil crashes when using the --certVersion parameter

RESOLVED FIXED in 3.17.2

Status

NSS
Tools
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: kaie, Assigned: kaie)

Tracking

3.17.1
3.17.2

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
certutil crashes when using the --certVersion parameter

The reason is the configuration code for the option, which says "doesn't take a parameter". When calling PORT_Atoi, certutil gets a NULL value for certutil.options[opt_CertVersion].arg and crashes.
(Assignee)

Comment 1

3 years ago
Created attachment 8500633 [details] [diff] [review]
patch v1
Assignee: nobody → kaie
Attachment #8500633 - Flags: review?(cviecco)
yes, that is a bug. When we use the option inside psm looks like by being the last option this bug does not get triggered.

http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/tests/unit/psm_common_py/CertUtils.py#235
Attachment #8500633 - Flags: review?(cviecco) → review+
(Assignee)

Comment 3

3 years ago
https://hg.mozilla.org/projects/nss/rev/d1d1fbbc1fa1
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.17.2
You need to log in before you can comment on or make changes to this bug.