[Mesa-dev] [PATCH 0/3] Fix Klocwork found issues

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Mon Dec 2 01:39:35 PST 2013


Check memory allocations before using them.
I am a bit iffy with this one though in the patches;
--
end:
   if (head != NULL) {
...
}
--
When everything works it works but could not be certain if it work perfect
when something fails. If memory allocations start to return NULL
this attribute stack probably will not be causing majority of problems in 
anycase.


Juha-Pekka Heikkila (3):
  glx: Check malloc return value before accessing memory in
    glx/clientattrib.c
  mesa: Verify memory allocations success in _mesa_PushClientAttrib
  mesa: Verify memory allocations success in _mesa_PushAttrib

 src/glx/clientattrib.c |   5 ++
 src/mesa/main/attrib.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 139 insertions(+), 6 deletions(-)

-- 
1.8.1.2



More information about the mesa-dev mailing list