mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
eitd: fix possible buffer overflow while writing egp-data (patch by FlatTV)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4eeca53fd6
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-05-24 (Thu, 24 May 2012)
Origin message was:
------------------
- eitd: fix possible buffer overflow while writing egp-data (patch by FlatTV)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1177,14 +1177,12 @@ static void commandWriteSI2XML(int connfd, char *data, const unsigned dataLength
|
||||
sendEmptyResponse(connfd, NULL, 0);
|
||||
if ((!reader_ready) || (dataLength > 100)){
|
||||
eventServer->sendEvent(CSectionsdClient::EVT_WRITE_SI_FINISHED, CEventServer::INITID_SECTIONSD);
|
||||
return;
|
||||
return;
|
||||
}
|
||||
char epgdir[100] = "";
|
||||
|
||||
strncpy(epgdir, data, dataLength);
|
||||
epgdir[dataLength] = '\0';
|
||||
data[dataLength] = '\0';
|
||||
|
||||
writeEventsToFile(epgdir);
|
||||
writeEventsToFile(data);
|
||||
|
||||
eventServer->sendEvent(CSectionsdClient::EVT_WRITE_SI_FINISHED, CEventServer::INITID_SECTIONSD);
|
||||
}
|
||||
|
Reference in New Issue
Block a user