diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-06-26 09:19:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-07-04 21:16:16 +1000 |
commit | 12bfb4cf1bebb66d2c2eb76b93c18a2915b865e5 (patch) | |
tree | 072669b8ad94cf4ad7b49ad37ef7155054781b1f /Xi | |
parent | a9c09f8f8e2a97e4bfe927bc4c7f29b04ee3403a (diff) |
Xi: extend PropagateMask to EMASKSIZE
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@who-t.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/extinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c index 494e887cd..94f46f72f 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]; /***************************************************************** * |