[Mesa-dev] [PATCH 0/5] Klocwork related patches

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed Dec 11 01:05:56 PST 2013


I made _mesa_PushAttrib a bit nicer with helper function as
Topi suggested, it made the entire _mesa_PushAttrib look more clean.

_mesa_PushClientAttrib I did not go touching anymore, helper for
_mesa_PushAttrib could not be used here and save_attrib_data
would need a duplicate function if it was to start handling allocation
of the incoming attribute parameter allocation.

Added the missing space for patch to DRI2WireToEvent (I blame 
autoformatter for losing this originally :) ) and new to the Klocwork 
patch list is patch to dri2CreateDrawable

Juha-Pekka Heikkila (5):
  Mesa: Change save_attrib_data() to return boolean
  mesa: Verify memory allocations success in _mesa_PushClientAttrib
  mesa: Verify memory allocations success in _mesa_PushAttrib
  glx: Add missing null check in DRI2WireToEvent
  glx: Add missing null check in dri2CreateDrawable

 src/glx/dri2.c         |   2 +
 src/glx/dri2_glx.c     |   6 +
 src/mesa/main/attrib.c | 301 +++++++++++++++++++++++++++++++++----------------
 3 files changed, 214 insertions(+), 95 deletions(-)

-- 
1.8.1.2



More information about the mesa-dev mailing list