summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-08-28 16:49:47 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-08-28 16:49:47 +0800
commitf71d8cfa67d3838c1854f9b94b16436bc885eaae (patch)
tree22177ae8f701419f480ea5936497e1cbc3853d20 /gtk/window-decorator
parent975054ead1392e777c07a8ffc3fd91f54fcaf77e (diff)
downloadcompiz-with-glib-mainloop-f71d8cfa67d3838c1854f9b94b16436bc885eaae.tar.gz
compiz-with-glib-mainloop-f71d8cfa67d3838c1854f9b94b16436bc885eaae.tar.bz2
Check property size before reading
Diffstat (limited to 'gtk/window-decorator')
-rw-r--r--gtk/window-decorator/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/window-decorator/settings.c b/gtk/window-decorator/settings.c
index 2df1ab1..2d53560 100644
--- a/gtk/window-decorator/settings.c
+++ b/gtk/window-decorator/settings.c
@@ -22,7 +22,7 @@ shadow_property_changed (WnckScreen *s)
result = XGetWindowProperty (xdisplay, root, compiz_shadow_info_atom, 0, 32768,
0, XA_INTEGER, &actual, &format, &n, &left, &prop_data);
- if (result != Success)
+ if (result != Success || n != 4)
return;
data = (long *) prop_data;