Fixed a container overflow in ViewController that could lead to a rare crash when using an ARM processor

This commit is contained in:
Leon Styhre 2023-03-12 12:09:05 +01:00
parent 60b958665f
commit f8dc7559ce

View file

@ -885,7 +885,7 @@ std::shared_ptr<GamelistView> ViewController::getGamelistView(SystemData* system
if (overrides.find(ThemeTriggers::TriggerType::NO_MEDIA) != overrides.end()) { if (overrides.find(ThemeTriggers::TriggerType::NO_MEDIA) != overrides.end()) {
noMediaTriggerType = ThemeTriggers::TriggerType::NO_MEDIA; noMediaTriggerType = ThemeTriggers::TriggerType::NO_MEDIA;
for (auto& imageType : overrides.at(ThemeTriggers::TriggerType::NO_MEDIA).second) { for (auto imageType : overrides.at(ThemeTriggers::TriggerType::NO_MEDIA).second) {
for (auto it = files.cbegin(); it != files.cend(); ++it) { for (auto it = files.cbegin(); it != files.cend(); ++it) {
if (imageType == "miximage") { if (imageType == "miximage") {
if (!(*it)->getMiximagePath().empty()) { if (!(*it)->getMiximagePath().empty()) {