diff options
author | Keith Packard <keithp@keithp.com> | 2003-11-10 05:09:10 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2003-11-10 05:09:10 +0000 |
commit | 37280d7888001a613640b7d005f4482e7d886c47 (patch) | |
tree | 283798907a77e08ccd599f8c7290342133e09470 /xcompmgr.c | |
parent | febeaf7ad1f81ac6b77fa35a5f21e7819c69ebb7 (diff) |
Make sure _XROOTPMAP_ID property is right type, format and length before
attempting to use the resulting value.
Diffstat (limited to 'xcompmgr.c')
-rw-r--r-- | xcompmgr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -328,7 +328,8 @@ root_tile (Display *dpy) if (XGetWindowProperty (dpy, root, XInternAtom (dpy, "_XROOTPMAP_ID", False), 0, 4, False, AnyPropertyType, - &actual_type, &actual_format, &nitems, &bytes_after, &prop) == Success) + &actual_type, &actual_format, &nitems, &bytes_after, &prop) == Success && + actual_type == XInternAtom (dpy, "PIXMAP", False) && actual_format == 32 && nitems == 1) { memcpy (&pixmap, prop, 4); XFree (prop); |