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
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev