mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/gui/user_menue.cpp fix AddressSanitizer: heap-use-after-free
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4947a71782
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-06 (Sun, 06 Mar 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -533,7 +533,7 @@ const char *CUserMenu::getUserMenuButtonName(int button, bool &active, bool retu
|
|||||||
if (mode == NeutrinoMessages::mode_webtv && !CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()) {
|
if (mode == NeutrinoMessages::mode_webtv && !CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()) {
|
||||||
if(loc == NONEXISTANT_LOCALE && !text) {
|
if(loc == NONEXISTANT_LOCALE && !text) {
|
||||||
CWebTVResolution webtvres;
|
CWebTVResolution webtvres;
|
||||||
text = webtvres.getResolutionValue();
|
std::string tmp = webtvres.getResolutionValue();
|
||||||
if (!(videoDecoder->getBlank()))
|
if (!(videoDecoder->getBlank()))
|
||||||
{
|
{
|
||||||
int xres = 0, yres = 0, framerate;
|
int xres = 0, yres = 0, framerate;
|
||||||
@@ -541,12 +541,14 @@ const char *CUserMenu::getUserMenuButtonName(int button, bool &active, bool retu
|
|||||||
if (xres && yres)
|
if (xres && yres)
|
||||||
{
|
{
|
||||||
std::string res = to_string(xres) + "x" + to_string(yres);
|
std::string res = to_string(xres) + "x" + to_string(yres);
|
||||||
if (res.compare(text))
|
if (res.compare(tmp))
|
||||||
{
|
{
|
||||||
std::string tmp = (string)text + " (" + res + ")";
|
tmp = " (" + res + ")";
|
||||||
text = tmp.c_str();
|
text = tmp.c_str();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
text = tmp.c_str();
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
return_title = true;
|
return_title = true;
|
||||||
|
Reference in New Issue
Block a user