diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-01 15:06:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-01 15:06:15 +0000 |
commit | c38cbac7e74b3fdf44e5d1883bca9d6bb551806c (patch) | |
tree | 4a453b184761c0054649847f3facc4a829f5048e /libs/clearlooks-newer | |
parent | d7deaa21bb78222e25b820c9583942a47dbc8fac (diff) |
Fix possible out-of-bounds array access (#4796).
git-svn-id: svn://localhost/ardour2/branches/3.0@11774 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/clearlooks-newer')
-rw-r--r-- | libs/clearlooks-newer/clearlooks_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |