mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
src/nhttpd/tuxboxapi/controlapi.cpp fix 64bit AddressSanitizer: heap-buffer-overflow
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9fc9b228ed
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-03 (Thu, 03 Mar 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -347,8 +347,8 @@ void CControlAPI::SetModeCGI(CyhookHandler *hh)
|
||||
if (hh->ParamList["1"] == "radio") // switch to radio mode
|
||||
{
|
||||
if(CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby){
|
||||
int mode = NeutrinoMessages::mode_radio;
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::CHANGEMODE, CEventServer::INITID_HTTPD, (void *)&mode,sizeof(int));
|
||||
neutrino_msg_data_t mode = NeutrinoMessages::mode_radio;
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::CHANGEMODE, CEventServer::INITID_HTTPD, (void *)&mode,sizeof(neutrino_msg_data_t));
|
||||
sleep(1);
|
||||
NeutrinoAPI->UpdateBouquets();
|
||||
}else{
|
||||
@@ -359,8 +359,8 @@ void CControlAPI::SetModeCGI(CyhookHandler *hh)
|
||||
else if (hh->ParamList["1"] == "tv") // switch to tv mode
|
||||
{
|
||||
if(CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby){
|
||||
int mode = NeutrinoMessages::mode_tv;
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::CHANGEMODE, CEventServer::INITID_HTTPD, (void *)&mode,sizeof(int));
|
||||
neutrino_msg_data_t mode = NeutrinoMessages::mode_tv;
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::CHANGEMODE, CEventServer::INITID_HTTPD, (void *)&mode,sizeof(neutrino_msg_data_t));
|
||||
sleep(1);
|
||||
NeutrinoAPI->UpdateBouquets();
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user