[PATCH xserver] glamor: avoid a crash if texture allocation failed

Eric Anholt eric at anholt.net
Fri Mar 17 20:18:11 UTC 2017


Olivier Fourdan <ofourdan at redhat.com> writes:

> Texture creation in _glamor_create_tex() can fail if a GL_OUT_OF_MEMORY
> is raised, in which case the texture returned is zero.
>
> But the texture value is not checked in glamor_create_fbo() and glamor
> will abort in glamor_pixmap_ensure_fb() because the fbo->tex is 0:

Reviewed, tagged for stable, and pushed.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170317/d57fbff4/attachment.sig>


More information about the xorg-devel mailing list