mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
src/gui/imageinfo.cpp fix heap-use-after-free
This commit is contained in:
@@ -249,8 +249,8 @@ void CImageInfo::InitInfoData()
|
|||||||
#ifdef IMAGE_VERSION
|
#ifdef IMAGE_VERSION
|
||||||
version_string = IMAGE_VERSION;
|
version_string = IMAGE_VERSION;
|
||||||
#else
|
#else
|
||||||
const char * _version = config.getString("version", "U000000000000000").c_str();
|
std::string _version = config.getString("version", "U000000000000000").c_str();
|
||||||
static CFlashVersionInfo versionInfo(_version);
|
static CFlashVersionInfo versionInfo(_version.c_str());
|
||||||
|
|
||||||
version_string = versionInfo.getReleaseCycle();
|
version_string = versionInfo.getReleaseCycle();
|
||||||
version_string += " ";
|
version_string += " ";
|
||||||
|
Reference in New Issue
Block a user