[gtk+] Avoid an oob read
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid an oob read
- Date: Wed, 15 Jun 2011 03:22:32 +0000 (UTC)
commit 5254fbacfbba67636d1f7c3ef7fca09314bfdda7
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 21:56:50 2011 -0400
Avoid an oob read
gdk/x11/gdkdevicemanager-xi2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 1953b48..cb95ed4 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -168,7 +168,7 @@ translate_valuator_class (GdkDisplay *display,
initialized = TRUE;
}
- for (i = GDK_AXIS_IGNORE; i <= GDK_AXIS_LAST; i++)
+ for (i = GDK_AXIS_IGNORE; i < GDK_AXIS_LAST; i++)
{
if (label_atoms[i] == info->label)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]