libx11: Issues with Data32/_XData32

2017-01-23 Thread James Clarke
Hi, I've been debugging an issue in gtk2-perl causing it to SIGBUS on sparc64, and traced it back to what seems to be dodgy code inside libx11. One of the tests calls gdk_window_set_opacity, which calls XChangeProperty with a pointer to a guint32, cast to char*, with the length set to 32 bits as

[PATCH xf86-video-intel] sna: Add missing NULL check for readdir result in has_connector_backlight

2016-12-05 Thread James Clarke
Signed-off-by: James Clarke <jrt...@jrtc27.com> --- src/sna/sna_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 1d31d008..f6b6e5be 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1033,6 +1033,9 @@ stati

[PATCH xproto v2] Don't let XFD_SETSIZE exceed FD_SETSIZE

2016-04-25 Thread James Clarke
This fixes 2c94cdb453bc641246cc8b9a876da9799bee1ce7 on the Hurd, as FD_SETSIZE is only 256, and so anyone using XFD_SETSIZE to iterate over the contents of an fd_set will overrun the array. Signed-off-by: James Clarke <jrt...@jrtc27.com> --- Changes since v1: * Added Signed-off-by *

[PATCH] Don't let XFD_SETSIZE exceed FD_SETSIZE

2016-04-25 Thread James Clarke
This fixes 2c94cdb453bc641246cc8b9a876da9799bee1ce7 on the Hurd, as FD_SETSIZE is only 256, and so anyone using XFD_SETSIZE to iterate over the contents of an fd_set will overrun the array. --- Xpoll.h.in | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Xpoll.h.in