Closed Bug 1078669 Opened 10 years ago Closed 10 years ago

certutil crashes when using the --certVersion parameter

Categories

(NSS :: Tools, defect)

3.17.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
3.17.2

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file)

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.
Attached patch patch v1Splinter Review
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+
https://hg.mozilla.org/projects/nss/rev/d1d1fbbc1fa1
Status: NEW → RESOLVED
Closed: 10 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.

Attachment

General

Created:
Updated:
Size: