Klocwork bugs in nss/lib/pk11wrap/dev3hack.c

RESOLVED FIXED in 3.12

Status

NSS
Libraries
P2
normal
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Nelson Bolyard (seldom reads bugmail), Assigned: Alexei Volkov)

Tracking

({klocwork})

trunk
3.12
klocwork

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Klocwork ID 76908
File     nss/lib/pk11wrap/dev3hack.c 
Function nssToken_CreateFromPK11SlotInfo

Pointer 'rvToken->slot' returned from call to function 'nssSlot_CreateFromPK11SlotInfo' at line 199 may be NULL and will be 
dereferenced at line 200 and line 201.

Klocwork ID 91119
file     nss/lib/pk11wrap/dev3hack.c 
Function nssSession_ImportNSS3Session

Pointer 'rvSession' returned from call to function 'nss_ZAlloc' at 
line 70 may be NULL and will be dereferenced at line 71.
Keywords: klocwork
(Reporter)

Updated

11 years ago
Priority: -- → P2
(Assignee)

Comment 1

11 years ago
Created attachment 241208 [details] [diff] [review]
check returned pointers value for NULL
Assignee: nobody → alexei.volkov.bugs
Status: NEW → ASSIGNED
Attachment #241208 - Flags: review?(nelson)
(Reporter)

Comment 2

11 years ago
Comment on attachment 241208 [details] [diff] [review]
check returned pointers value for NULL 

r=nelson
Attachment #241208 - Flags: review?(nelson) → review+
(Assignee)

Comment 3

11 years ago
/cvsroot/mozilla/security/nss/lib/pk11wrap/dev3hack.c,v  <--  dev3hack.c
new revision: 1.22; previous revision: 1.21
(Assignee)

Updated

11 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.