Closed Bug 1259909 Opened 9 years ago Closed 9 years ago

Obviate char PORT_Free() calls in PSM

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: Cykesiopka, Assigned: Cykesiopka)

Details

(Whiteboard: [psm-assigned])

Attachments

(1 file)

Smart pointers should be used to manage char* resources returned via NSS calls for better maintainability and robustness.
Summary: Obviate string PORT_Free() calls in PSM → Obviate char PORT_Free() calls in PSM
Also converts the longer |UniquePtr<char, void(&)(void*)> foo(..., PORT_Free)| to the shorter and equivalent |UniquePORTString foo(...)|. Review commit: https://reviewboard.mozilla.org/r/45207/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/45207/
Attachment #8739343 - Flags: review?(dkeeler)
Comment on attachment 8739343 [details] MozReview Request: Bug 1259909 - Obviate char PORT_Free() calls in PSM. r=keeler https://reviewboard.mozilla.org/r/45207/#review41791 Great - r=me.
Attachment #8739343 - Flags: review?(dkeeler) → review+
Comment on attachment 8739343 [details] MozReview Request: Bug 1259909 - Obviate char PORT_Free() calls in PSM. r=keeler Review request updated; see interdiff: https://reviewboard.mozilla.org/r/45207/diff/1-2/
Attachment #8739343 - Attachment description: MozReview Request: Bug 1259909 - Obviate char PORT_Free() calls in PSM. → MozReview Request: Bug 1259909 - Obviate char PORT_Free() calls in PSM. r=keeler
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: