1 Star 0 Fork 44

baiguo/xorg-x11-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Fix-the-crash-in-shadowUpdatePacked-because-of-memcp.patch 900 Bytes
一键复制 编辑 原始数据 按行查看 历史
From de7b67924425b3aa540c19c8431ff0d7c5892608 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 24 May 2022 09:49:36 +0800
Subject: [PATCH] Fix the crash in shadowUpdatePacked because of memcpy acts
randomly with overlapping areas.
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
---
miext/shadow/shpacked.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c
index 5220854..8b16a98 100644
--- a/miext/shadow/shpacked.c
+++ b/miext/shadow/shpacked.c
@@ -98,7 +98,7 @@ shadowUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
i = width;
width -= i;
scr += i;
- memcpy(win, sha, i * sizeof(FbBits));
+ memmove(win, sha, i * sizeof(FbBits));
sha += i;
}
shaLine += shaStride;
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baiguoguo/xorg-x11-server.git
git@gitee.com:baiguoguo/xorg-x11-server.git
baiguoguo
xorg-x11-server
xorg-x11-server
master

搜索帮助