Closed Bug 987942 Opened 10 years ago Closed 10 years ago

Check for PK11_CreateContextBySymKey returning null

Categories

(Core :: WebRTC: Networking, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: ekr, Assigned: bwc)

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Group: core-security
See:
http://hg.mozilla.org/mozilla-central/annotate/fa098f9fe89c/media/mtransport/nricectx.cpp#l135

Marked security until we verify that this is just a null pointer dereference.
See:
http://hg.mozilla.org/mozilla-central/annotate/fa098f9fe89c/media/mtransport/nricectx.cpp#l135

Marked security until we verify that this is just a null pointer dereference.
Assignee: nobody → docfaraday
This is just a null pointer deref in PK11_DigestBegin.
Comment on attachment 8400229 [details] [diff] [review]
Check whether PK11_CreateContextBySymKey returns null

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

Also, we can unmark this as security, since this is just a null pointer member access.
Attachment #8400229 - Flags: review?(ekr)
Group: core-security
Comment on attachment 8400229 [details] [diff] [review]
Check whether PK11_CreateContextBySymKey returns null

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

Please revert this formatting change.

::: media/mtransport/nricectx.cpp
@@ +131,5 @@
>    if (!skey)
>      goto abort;
>  
>  
> +  hmac_ctx = PK11_CreateContextBySymKey(mech, CKA_SIGN, skey, &param);

Superfluous reformatting.
Attachment #8400229 - Flags: review?(ekr) → review+
Undo formatting change.
Attachment #8400229 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9814945feba2
Status: NEW → 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: