Fix possible out-of-bounds array access (#4796).
git-svn-id: svn://localhost/ardour2/branches/3.0@11774 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d7deaa21bb
commit
c38cbac7e7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user