Closed Bug 987217 Opened 10 years ago Closed 10 years ago

Small leak in nsCreateReqFromKeyPairs

Categories

(Core :: Security, defect)

24 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: mccr8, Assigned: keeler)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file leaking stack
Using LeakSanitizer, I see a small leak in a stack where nsCrypto::GenerateCRMFRequest calls nsCreateReqFromKeyPairs.  This shows up consistently in Mochitest-1.  See the attachment for details.
Attached patch patchSplinter Review
Thanks for finding this, Andrew. Just to check, does this patch fix the leak for you?
Assignee: nobody → dkeeler
Status: NEW → ASSIGNED
Attachment #8395896 - Flags: review?(cviecco)
Flags: needinfo?(continuation)
Comment on attachment 8395896 [details] [diff] [review]
patch

Review of attachment 8395896 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM. We should probably file a bug to make SetCRMFRequest fail on error.
Attachment #8395896 - Flags: review?(cviecco) → review+
This fixes the leak for me.  Thanks!
Flags: needinfo?(continuation)
(In reply to Camilo Viecco (:cviecco) from comment #2)
> LGTM. We should probably file a bug to make SetCRMFRequest fail on error.

I'm not sure what you mean - I'm pretty sure SetCRMFRequest is infallible as implemented.
https://hg.mozilla.org/mozilla-central/rev/a5931dfd4c53
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: