Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/clutter/files: clutter-1.12.2-array-bounds.patch
Date: Wed, 05 Jun 2013 14:58:55
Message-Id: 20130605145846.E72DA2171D@flycatcher.gentoo.org
1 jlec 13/06/05 14:58:46
2
3 Added: clutter-1.12.2-array-bounds.patch
4 Log:
5 media-libs/clutter: Backport patch to fix segfault due to unrespected array bounds, #469196
6
7 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
8
9 Revision Changes Path
10 1.1 media-libs/clutter/files/clutter-1.12.2-array-bounds.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/clutter/files/clutter-1.12.2-array-bounds.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/clutter/files/clutter-1.12.2-array-bounds.patch?rev=1.1&content-type=text/plain
14
15 Index: clutter-1.12.2-array-bounds.patch
16 ===================================================================
17 From d5604be9e5a148ced73dee2ede49b38f97119baf Mon Sep 17 00:00:00 2001
18 From: Yanko Kaneti <yaneti@×××××××.com>
19 Date: Mon, 28 Jan 2013 15:49:51 +0200
20 Subject: [PATCH] xi2: Fix access beyond array boundaries
21
22 ---
23 clutter/x11/clutter-device-manager-xi2.c | 6 +++---
24 1 file changed, 3 insertions(+), 3 deletions(-)
25
26 diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
27 index 616dee7..bd9473e 100644
28 --- a/clutter/x11/clutter-device-manager-xi2.c
29 +++ b/clutter/x11/clutter-device-manager-xi2.c
30 @@ -94,13 +94,13 @@ translate_valuator_class (Display *xdisplay,
31 atoms_initialized = TRUE;
32 }
33
34 - for (i = CLUTTER_INPUT_AXIS_IGNORE;
35 - i < CLUTTER_INPUT_AXIS_LAST;
36 + for (i = 0;
37 + i < N_AXIS_ATOMS;
38 i += 1)
39 {
40 if (clutter_input_axis_atoms[i] == class->label)
41 {
42 - axis = i;
43 + axis = i + 1;
44 break;
45 }
46 }
47 --
48 1.8.1