Bug 91699

Summary: alloc function maybe return NULL and hit memory access violation without any checking before using the C structure
Product: libva Reporter: Lim Siew Hoon <siew.hoon.lim>
Component: intelAssignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact: Sean V Kelley <seanvk>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: 0001-Fix-klockwork-critical-message-hit-on-calloc-function

Description Lim Siew Hoon 2015-08-20 10:25:17 UTC
Created attachment 117804 [details]
0001-Fix-klockwork-critical-message-hit-on-calloc-function

Fix on Klockwork scanning critical message on calloc function that possible return NULL, and hit memory access violation if we continue using it without notice it return NULL.

Add in assert function to do NULL checking. 

Attached the patch.
Comment 1 haihao 2015-09-07 03:06:31 UTC
The patch has been applied.

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.