cec: check whether the initiator is valid in CCECProcessor::ParseCommand(). fixes...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 11 Nov 2011 22:52:47 +0000 (23:52 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 11 Nov 2011 22:52:47 +0000 (23:52 +0100)
src/lib/CECProcessor.cpp

index bdcb4d3e816deadbde7385d1dbab0c91e40ddbde..cc8d86eb471e844345b8c4c0276536072ba4db63 100644 (file)
@@ -659,7 +659,7 @@ void CCECProcessor::ParseCommand(cec_command &command)
     dataStr.AppendFormat(":%02x", (unsigned int)command.parameters[iPtr]);
   m_controller->AddLog(CEC_LOG_TRAFFIC, dataStr.c_str());
 
-  if (!m_bMonitor)
+  if (!m_bMonitor && command.initiator >= CECDEVICE_TV && command.initiator < CECDEVICE_BROADCAST)
     m_busDevices[(uint8_t)command.initiator]->HandleCommand(command);
 }