[Intel-gfx] [PATCH v2 00/11] drm: Fix various static analysis issues

Praveen Paneri praveen.paneri at intel.com
Fri Apr 10 01:42:52 PDT 2015


v2:
Rebased few patches to the latest.
Dropped one patch which was already merged.
Addressed the comments from Chris.

v1:
This patch set fixes various issues reported by a static
analysis tool.

Praveen Paneri (11):
  intel: Validate bo_fake before using.
  intel: Validate output of realloc()
  intel: Use snprintf instead of sprintf
  intel: Validate pointer before using
  xf86drm: Avoid negative array index value
  xf86drmSL: Check function return value
  intel: Validate memory allocations
  drm: Validate memory allocations
  xf86drmSL: Check memory allocation by SL_RANDOM_INIT()
  xf86drmHash: Check memory allocation in HashHash()
  xf86drm: Validate function return value

 intel/intel_bufmgr_fake.c | 20 +++++++---
 intel/intel_bufmgr_gem.c  | 99 ++++++++++++++++++++++++++++++++++-------------
 intel/intel_decode.c      | 14 ++++---
 xf86drm.c                 | 77 ++++++++++++++++++++++++++++--------
 xf86drmHash.c             |  9 +++++
 xf86drmSL.c               |  7 ++++
 6 files changed, 171 insertions(+), 55 deletions(-)

-- 
1.9.1



More information about the Intel-gfx mailing list