9 Star 6 Fork 30

src-openEuler/dde-control-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-fix-Array-out-of-bounds-causes-crash-handling.patch 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2年前 . upgrade to version 5.5.182
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dde-control-center.git
git@gitee.com:src-openeuler/dde-control-center.git
src-openeuler
dde-control-center
dde-control-center
openEuler-24.09

搜索帮助