Bug 91699 - alloc function maybe return NULL and hit memory access violation without any checking before using the C structure
Summary: alloc function maybe return NULL and hit memory access violation without any ...
Status: RESOLVED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 10:25 UTC by Lim Siew Hoon
Modified: 2015-09-07 03:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
0001-Fix-klockwork-critical-message-hit-on-calloc-function (15.26 KB, text/plain)
2015-08-20 10:25 UTC, Lim Siew Hoon
Details

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.