mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-29 01:08:12 +02:00
dri2_create_surface can fail for a variety of reasons, including bad
input data. Dereferencing the NULL pointer and crashing is not okay.
Fixes issue identified by Klocwork analysis:
Pointer 'surf' returned from call to function 'dri2_create_surface'
at line 285 may be NULL and will be dereferenced at line 291.
NOTE: This is a candidate for the stable branches.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|
||
|---|---|---|
| .. | ||
| docs | ||
| drivers | ||
| main | ||
| wayland | ||
| Makefile.am | ||