[PATCH] xfixes: Forbid manipulating clip for source-only pictures (#28968)

Keith Packard keithp at keithp.com
Tue Apr 22 07:52:05 PDT 2014


Adam Jackson <ajax at redhat.com> writes:

> #include <X11/Xlib.h>
> #include <X11/extensions/Xrender.h>
> #include <X11/extensions/Xfixes.h>
>
> int main(void)
> {
>     XRenderColor c = { 0, 0, 0, 0 };
>     Display *dpy = XOpenDisplay(NULL);
>     Picture p = XRenderCreateSolidFill(dpy, &c);
>     XFixesSetPictureClipRegion(dpy, p, 0, 0, None);
>     XSync(dpy, 0);
>     return 0;
> }

Duh. Ok, so all three paths fail, two with segfaults and one with
BadDrawable.

Merged.
   70e5641..ba2432a  master -> master

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140422/0e6c029f/attachment.sig>


More information about the xorg-devel mailing list