Re: [Mesa-dev] [PATCH 2/3] mesa/main: Missing NULL pointer check.

2017-06-14 Thread Timothy Arceri
This and the following patch are in no error paths. The result cannot be NULL unless the function is being used incorrectly. I would rather this be left as to segfault than to fail silently. On 15/06/17 02:33, Plamena Manolova wrote: In prepare_target it's plausible that the parameters of _mes

[Mesa-dev] [PATCH 2/3] mesa/main: Missing NULL pointer check.

2017-06-14 Thread Plamena Manolova
In prepare_target it's plausible that the parameters of _mesa_lookup_texture might be invalid and NULL is returned, so we need a NULL pointer check. CID: 1412566 Signed-off-by: Plamena Manolova --- src/mesa/main/copyimage.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git