Bug 92813

Summary: dereferencing a pointer 'sess' may be NULL returned from function
Product: p11-glue Reporter: Pankaj <pankaj.s01>
Component: p11-kitAssignee: Stef Walter <stefw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: p11-kit-mock-001 patch

Description Pankaj 2015-11-04 12:11:33 UTC
Created attachment 119399 [details]
p11-kit-mock-001 patch

Hi ,
This is an issue reported for dereferencing a NULL pointer 'sess' ,if calloc() failed to return allocated memory. but there is rare chance to be calloc failed.

file : p11-kit-0.23.1/common/mock.c:918
the patch has been attached ,please review it.

thanks !
Pankaj Sharma

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.