From 6b7d4f74f29412d44f1c8616adc777068a56d101 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sat, 1 Oct 2022 04:49:16 +1000 Subject: [PATCH] xvimagesink: Zero initialize mask array Clear the stack array before setting bits to pass to XISelectEvents(). Fixes spurious crash from an X error: X Error of failed request: BadValue (integer parameter out of range for operation) Part-of: --- subprojects/gst-plugins-base/sys/xvimage/xvcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/sys/xvimage/xvcontext.c b/subprojects/gst-plugins-base/sys/xvimage/xvcontext.c index 8579709b1b..fbaee4e309 100644 --- a/subprojects/gst-plugins-base/sys/xvimage/xvcontext.c +++ b/subprojects/gst-plugins-base/sys/xvimage/xvcontext.c @@ -1228,7 +1228,7 @@ gst_xwindow_set_event_handling (GstXWindow * window, gboolean handle_events) #ifdef HAVE_XI2 if (context->use_xi2) { XIEventMask mask_data; - unsigned char mask[2]; + unsigned char mask[2] = { 0, }; gst_xwindow_select_touch_events (context, window);