dde-control-center/0010-fix-Array-out-of-bounds-causes-crash-handling.patch
leeffo d411ae843b upgrade to version 5.5.182
(cherry picked from commit 26a55841168beb9e8f439ae5bb4f3ced5ddce26a)
2023-08-18 15:52:03 +08:00

26 lines
1.1 KiB
Diff

From d9f1a109f90f61dd917ad3ddce5894580086340e Mon Sep 17 00:00:00 2001
From: leeffo <leeffo@yeah.net>
Date: Mon, 12 Jun 2023 15:45:47 +0800
Subject: [PATCH] fix: Array out of bounds causes crash handling
---
src/frame/window/modules/systeminfo/systeminfowidget.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frame/window/modules/systeminfo/systeminfowidget.cpp b/src/frame/window/modules/systeminfo/systeminfowidget.cpp
index 6313841..0f06271 100644
--- a/src/frame/window/modules/systeminfo/systeminfowidget.cpp
+++ b/src/frame/window/modules/systeminfo/systeminfowidget.cpp
@@ -89,7 +89,7 @@ void SystemInfoWidget::initData()
if (IsServerSystem) {
connect(GSettingWatcher::instance(),
&GSettingWatcher::requestShowSecondMenu, this, [this](int row) {
- if (m_itemList[row].gsettingsName == "editionLicense") {
+ if (m_itemList.size() > row && m_itemList[row].gsettingsName == "editionLicense") {
m_listView->setRowHidden(row, true);
}
});
--
2.20.1