Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed|LogWidget: Possible out-of-bounds cache access
  • Loading branch information
skyjake committed Jun 12, 2013
1 parent d002b59 commit 44cd178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/ui/widgets/logwidget.cpp
Expand Up @@ -605,7 +605,7 @@ public Font::RichFormat::IStyle

// Excess entries before the visible range.
int excess = visibleRange.start - len;
for(int i = 0; i <= excess; ++i)
for(int i = 0; i <= excess && i < cache.size(); ++i)
{
cache[i]->clear();
}
Expand Down

0 comments on commit 44cd178

Please sign in to comment.