[PATCH 4/4] Xi: extend PropagateMask to EMASKSIZE
Peter Hutterer
peter.hutterer at who-t.net
Mon Jun 25 17:00:50 PDT 2012
Number of devices is 2 + MAXDEVICES, with index 0 and 1 reserved for
XIAll{Master}Devices. At the current size, PropagateMask would be overrun in
RecalculateDeviceDeliverableEvents().
Found by Coverity.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Xi/extinit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 494e887..94f46f7 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -365,7 +365,7 @@ RESTYPE RT_INPUTCLIENT;
extern XExtensionVersion XIVersion;
-Mask PropagateMask[MAXDEVICES];
+Mask PropagateMask[EMASKSIZE];
/*****************************************************************
*
--
1.7.10.2
More information about the xorg-devel
mailing list