Closed Bug 289529 Opened 20 years ago Closed 20 years ago

NSC_CopyObject crashes when trying to copy token object

Categories

(NSS :: Libraries, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(1 file)

NSC_CopyObject calls sftk_CopyObject to copy the object. But sftk_CopyObject fails if it is asked to copy a token object. When it returns, the code frees the target object, but then forgets to return. Instead it falls through into a call to sftk_handleObject, which crashes. Patch forthcoming.
Attached patch patchSplinter Review
Bob, please review
Attachment #180032 - Flags: review?(rrelyea)
This limitation of C_CopyObject seriously compromises the proposed fix for bug 274538, which involved copying a token key to a session key.
Comment on attachment 180032 [details] [diff] [review] patch r+ relyea Doh! I See bug 289530 is open for the other part of the problem.. bob
Attachment #180032 - Flags: review?(rrelyea) → review+
Fixed on trunk for 3.10
Priority: -- → P1
Target Milestone: --- → 3.10
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This was fixed in rev 1.100 of pkcs11.c on 04-08-2005.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: