Closed Bug 130158 Opened 22 years ago Closed 22 years ago

NSC_CopyObject crashes if pk11_CopyObject fails

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jamie-bugzilla, Assigned: jamie-bugzilla)

References

Details

Attachments

(2 files)

If pk11_CopyObject fails in NSC_CopyObject, we free the object but then continue
with the function. We try to use the object we just freed and crash.  We should
probably return or jump to the end of the function.
Attached patch proposed patchSplinter Review
Jump to the end of the function if pk11_CopyObject fails.
I don't think this needs to get fixed for NSS 3.4 because it won't get exercized  .
Attached patch proposed patch 2Splinter Review
In keeping with the current style of error handling in that
function, I suggest this patch instead.  We should just return
crv directly.
I checked in patch #2.
Status: NEW → RESOLVED
Closed: 22 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 3.4
Blocks: 131513
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: