Projects
Mega:24.03:SP1:Everything
xorg-x11-server
_service:tar_scm:0001-Fix-the-crash-in-shadowUp...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-Fix-the-crash-in-shadowUpdatePacked-because-of-memcp.patch of Package xorg-x11-server
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2