mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
src/gui/user_menue_setup.cpp fix possible AddressSanitizer: global-buffer-overflow
Origin commit data
------------------
Commit: c5a0bb67e1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-10 (Thu, 10 Mar 2016)
This commit is contained in:
@@ -190,6 +190,10 @@ int CUserMenuSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
static neutrino_locale_t locals[SNeutrinoSettings::ITEM_MAX];
|
||||
neutrino_locale_t CUserMenuSetup::getLocale(unsigned int key)
|
||||
{
|
||||
if(key >= SNeutrinoSettings::ITEM_MAX){
|
||||
key = SNeutrinoSettings::ITEM_MAX-1;
|
||||
}
|
||||
|
||||
static bool initialized = false;
|
||||
if (!initialized) {
|
||||
initialized = true;
|
||||
|
Reference in New Issue
Block a user