From c38cbac7e74b3fdf44e5d1883bca9d6bb551806c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 1 Apr 2012 15:06:15 +0000 Subject: Fix possible out-of-bounds array access (#4796). git-svn-id: svn://localhost/ardour2/branches/3.0@11774 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/clearlooks-newer/clearlooks_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/clearlooks-newer/clearlooks_draw.c b/libs/clearlooks-newer/clearlooks_draw.c index c614e90918..167c458dd9 100644 --- a/libs/clearlooks-newer/clearlooks_draw.c +++ b/libs/clearlooks-newer/clearlooks_draw.c @@ -1034,7 +1034,7 @@ clearlooks_draw_menubar (cairo_t *cr, const MenuBarParameters *menubar, int x, int y, int width, int height) { - if (menubar->style < 0 || menubar->style > 3) + if (menubar->style < 0 || menubar->style >= 3) return; clearlooks_menubar_draw[menubar->style](cr, colors, params, menubar, -- cgit v1.2.3