(svn r24915) -Fix: Several out-of-bounds reads

This commit is contained in:
smatz
2013-01-14 21:16:56 +00:00
parent 914bb708ad
commit 3a3162865b
4 changed files with 9 additions and 7 deletions

View File

@@ -175,6 +175,8 @@ int GetWidgetFromPos(const Window *w, int x, int y)
*/
void DrawFrameRect(int left, int top, int right, int bottom, Colours colour, FrameFlags flags)
{
assert(colour < COLOUR_END);
uint dark = _colour_gradient[colour][3];
uint medium_dark = _colour_gradient[colour][5];
uint medium_light = _colour_gradient[colour][6];