]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - clutter/patches/oob-device-fix.patch
glibc: Update to 2.20
[people/ms/ipfire-3.x.git] / clutter / patches / oob-device-fix.patch
CommitLineData
de0ddf3e
SS
1From d5604be9e5a148ced73dee2ede49b38f97119baf Mon Sep 17 00:00:00 2001
2From: Yanko Kaneti <yaneti@declera.com>
3Date: Mon, 28 Jan 2013 15:49:51 +0200
4Subject: [PATCH] xi2: Fix access beyond array boundaries
5
6---
7 clutter/x11/clutter-device-manager-xi2.c | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
9
10diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
11index 616dee7..bd9473e 100644
12--- a/clutter/x11/clutter-device-manager-xi2.c
13+++ b/clutter/x11/clutter-device-manager-xi2.c
14@@ -94,13 +94,13 @@ translate_valuator_class (Display *xdisplay,
15 atoms_initialized = TRUE;
16 }
17
18- for (i = CLUTTER_INPUT_AXIS_IGNORE;
19- i < CLUTTER_INPUT_AXIS_LAST;
20+ for (i = 0;
21+ i < N_AXIS_ATOMS;
22 i += 1)
23 {
24 if (clutter_input_axis_atoms[i] == class->label)
25 {
26- axis = i;
27+ axis = i + 1;
28 break;
29 }
30 }
31--
321.8.1
33