[Mesa-dev] [PATCH 00/20] Klocwork patches

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed May 14 10:55:46 PDT 2014


My Klocwork set again rebased and added with few new patches. This set pass
piglit quick set on my ivybridge without regressions.

i965: Avoid null access in intelMakeCurrent() I was a bit iffy if its 
the same behavior which I replaced.

mesa/drivers: Add extra null check in blitframebuffer_texture()
GetDrawableAttribute may send GLXBadDrawable if <draw> is not bound 
to thread's context. Should GLXBadDrawable be sent also if 
GetGLXDRIDrawable(dpy, drawable) return NULL because it mean drawable 
is not associated with a direct-rendering context. Now just return 0.

/Juha-Pekka

Juha-Pekka Heikkila (20):
  mesa: In emit_texenv() type mismatch was forced with typecast
  mesa: Add missing null checks into prog_hash_table.c
  glsl: add missing null check in tfeedback_decl::init()
  mesa: add missing null check in _mesa_NewHashTable()
  i965: check malloc return value in intel_resolve_map_set()
  mesa: add null checks in symbol_table.c
  glsl: Add null check in loop_analysis.cpp
  glsl: check _mesa_hash_table_create return value in
    link_uniform_blocks
  i965/fs: Check variable_storage return value in fs_visitor::visit
  glx: Added missing null check in GetDrawableAttribute()
  mesa/drivers: Add extra null check in blitframebuffer_texture()
  i965: Avoid null access in intelMakeCurrent()
  glsl: Add missing null check in push_back()
  glsl: Check calloc return value in link_intrastage_shaders()
  mesa/main: Verify calloc return value in register_surface()
  mesa/main: In register_surface() verify gl_texture_object was found
  i965: Check calloc return value in gather_statistics_results()
  i965/gen8_fs: Avoid null access on printing debug info.
  mesa/main: Add missing null check in _mesa_CreatePerfQueryINTEL()
  i965: Handle miptree creation failure in intel_alloc_texture_storage()

 src/glsl/link_atomics.cpp                          | 13 ++++++++--
 src/glsl/link_uniform_blocks.cpp                   |  5 ++++
 src/glsl/link_varyings.cpp                         |  5 ++++
 src/glsl/linker.cpp                                |  6 +++++
 src/glsl/loop_analysis.cpp                         |  6 +++--
 src/glx/glx_pbuffer.c                              |  4 +++
 src/mesa/drivers/common/meta_blit.c                |  3 +++
 src/mesa/drivers/dri/i965/brw_context.c            | 10 +++++---
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp       |  6 +++++
 .../drivers/dri/i965/brw_performance_monitor.c     |  7 ++++-
 src/mesa/drivers/dri/i965/gen8_fs_generator.cpp    |  2 +-
 src/mesa/drivers/dri/i965/intel_resolve_map.c      |  7 +++++
 src/mesa/drivers/dri/i965/intel_tex.c              |  3 +++
 src/mesa/main/ff_fragment_shader.cpp               | 17 ++++++------
 src/mesa/main/hash.c                               | 10 ++++++++
 src/mesa/main/performance_monitor.c                |  5 ++++
 src/mesa/main/vdpau.c                              | 11 ++++++++
 src/mesa/program/prog_hash_table.c                 |  8 ++++++
 src/mesa/program/symbol_table.c                    | 30 ++++++++++++++++++++++
 19 files changed, 141 insertions(+), 17 deletions(-)

-- 
1.8.1.2



More information about the mesa-dev mailing list