Projects
Eulaceura:Factory
libvirt
_service:obs_scm:remote_driver-fix-the-UAF-caus...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:remote_driver-fix-the-UAF-causing-UnicodeDecodeError.patch of Package libvirt
From 10ec4fa6e9f1e6c72f2d7a1025d1e200ce94f8b0 Mon Sep 17 00:00:00 2001 From: caozhongwang <caozhongwang1@huawei.com> Date: Sat, 18 May 2024 17:05:07 +0800 Subject: [PATCH] remote_driver: fix the UAF causing "UnicodeDecodeError: 'utf-8' codec can't decode byte XXX". Signed-off-by:xiuqing1 <xiuqing1@huawei.com> --- src/remote/remote_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index a1a0edd7a2..9350e811d6 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -1408,7 +1408,7 @@ remoteConnectGetType(virConnectPtr conn) return NULL; /* Stash. */ - return priv->type = ret.type; + return priv->type = g_steal_pointer(&ret.type); } static int remoteConnectIsSecure(virConnectPtr conn) -- 2.27.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