Skip to content

Commit

Permalink
LCDProcClient: Fix two array bounds read errors
Browse files Browse the repository at this point in the history
Refs #11379
  • Loading branch information
natanojl committed Jul 13, 2013
1 parent 9039d5f commit 447097d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/programs/mythlcdserver/lcdprocclient.cpp
Expand Up @@ -1628,7 +1628,7 @@ void LCDProcClient::scrollMenuText()

// Back up one if were at the end so the last item shows up at the bottom
// of the display
if ((int)counter == m_lcdMenuItems->size())
if (counter > 1 && (int)counter == m_lcdMenuItems->size())
--it;

bool stopTimer = true;
Expand Down Expand Up @@ -1990,6 +1990,9 @@ void LCDProcClient::outputRecStatus(void)
listTime = LCD_RECSTATUS_TIME;
m_isTimeVisible = false;
m_activeScreen = "RecStatus";

if (m_lcdTunerNo > (int) m_tunerList.size() - 1)
m_lcdTunerNo = 0;
}
else if ( m_lcdTunerNo > (int) m_tunerList.size() - 1)
{
Expand Down

0 comments on commit 447097d

Please sign in to comment.