Projects
Factory:RISC-V:Base
rpm
_service:tar_scm:backport-Fix-eiu-sourceURL-inf...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Fix-eiu-sourceURL-info-leak-in-rpmInstall.patch of Package rpm
From 084c64d5ea0e1a309d3b57dc95926eb1536d0a7a Mon Sep 17 00:00:00 2001 From: xujing <xujing125@huawei.com> Date: Thu, 24 Nov 2022 11:43:28 +0800 Subject: [PATCH 1/3] Fix eiu->sourceURL info leak in rpmInstall() When installing source rpms, eiu->sourceURL info is leaked. --- lib/rpminstall.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 097599681..eb68deb4d 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -672,8 +672,13 @@ exit: eiu->pkgURL[i] = _free(eiu->pkgURL[i]); } } + if (eiu->sourceURL != NULL) { + for (i = 0; i < eiu->numSRPMS; i++) + eiu->sourceURL[i] = _free(eiu->sourceURL[i]); + } eiu->pkgState = _free(eiu->pkgState); eiu->pkgURL = _free(eiu->pkgURL); + eiu->sourceURL = _free(eiu->sourceURL); eiu->argv = _free(eiu->argv); rc = eiu->numFailed; free(eiu); -- 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