[Mesa-dev] [PATCH] dri2GetGlxDrawableFromXDrawableId may return NULL

Niels Ole Salscheider niels_ole at salscheider-online.de
Wed Jul 28 01:32:06 PDT 2010


Hello,

there's another place where the returned pointer is not checked in
src/glx/dri2.c (see attachment). This might fix bug 29148.

Kind
regards

Ole

On Wednesday 28 July 2010 09:46:42 Niels Ole Salscheider
wrote:
> Hello,
> 
> I have written a small patch that fixes a crash in KWin
(see
> attachment).
> 
> Since dri2GetGlxDrawableFromXDrawableId may return
NULL we
> should only dereference the returned pointer if it is not NULL.
>

> Kind
> regards
> 
> Ole

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dri2GetGlxDrawableFromXDrawableId-may-return-NULL.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100728/706ecfa6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100728/706ecfa6/attachment.pgp>


More information about the mesa-dev mailing list