From 9037aadd042fc6d46becff7ba18710c538def147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 9 Jan 2019 18:40:14 +0100 Subject: [PATCH] module/xwindow: some windows have a zero-length PID property --- modules/xwindow.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/xwindow.c b/modules/xwindow.c index a052a85..f699192 100644 --- a/modules/xwindow.c +++ b/modules/xwindow.c @@ -93,6 +93,11 @@ update_application(struct module *mod) return; } + if (xcb_get_property_value_length(r) == 0) { + free(r); + return; + } + uint32_t pid; assert(xcb_get_property_value_length(r) == sizeof(pid));