mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
src/gui/widget/menue.cpp fix possible heap-buffer-overflow
This commit is contained in:
@@ -1311,9 +1311,9 @@ void CMenuWidget::paintItems()
|
||||
//Item not currently on screen
|
||||
if (selected >= 0)
|
||||
{
|
||||
while (selected < page_start[current_page])
|
||||
while (current_page > 0 && selected < page_start[current_page])
|
||||
current_page--;
|
||||
while (selected >= page_start[current_page + 1])
|
||||
while (current_page+1 < page_start.size() && selected >= page_start[current_page + 1])
|
||||
current_page++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user