libsubid: Dealocate memory on exit
This commit is contained in:
parent
3e5c02940f
commit
e6e10e3d84
23
shadow-libsubid-Dealocate-memory-on-exit.patch
Normal file
23
shadow-libsubid-Dealocate-memory-on-exit.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 18f113cc4609e00c4f95072dbe954174f2c29be1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Daniel Bershatsky <d.bershatsky2@skoltech.ru>
|
||||||
|
Date: Wed, 12 Jun 2024 19:26:45 +0300
|
||||||
|
Subject: [PATCH] libsubid: Dealocate memory on exit
|
||||||
|
|
||||||
|
---
|
||||||
|
src/getsubids.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/getsubids.c b/src/getsubids.c
|
||||||
|
index fb645b19..0753abd7 100644
|
||||||
|
--- a/src/getsubids.c
|
||||||
|
+++ b/src/getsubids.c
|
||||||
|
@@ -45,5 +45,6 @@ int main(int argc, char *argv[])
|
||||||
|
printf("%d: %s %lu %lu\n", i, owner,
|
||||||
|
ranges[i].start, ranges[i].count);
|
||||||
|
}
|
||||||
|
+ free(ranges);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: shadow
|
Name: shadow
|
||||||
Version: 4.14.3
|
Version: 4.14.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: BSD and GPLv2+
|
License: BSD and GPLv2+
|
||||||
Summary: Tools for managing accounts and shadow password files
|
Summary: Tools for managing accounts and shadow password files
|
||||||
@ -19,6 +19,7 @@ Source7: newusers
|
|||||||
Patch0: usermod-unlock.patch
|
Patch0: usermod-unlock.patch
|
||||||
Patch1: shadow-add-sm3-crypt-support.patch
|
Patch1: shadow-add-sm3-crypt-support.patch
|
||||||
Patch2: shadow-Remove-encrypted-passwd-for-useradd-gr.patch
|
Patch2: shadow-Remove-encrypted-passwd-for-useradd-gr.patch
|
||||||
|
Patch3: shadow-libsubid-Dealocate-memory-on-exit.patch
|
||||||
|
|
||||||
BuildRequires: gcc, libselinux-devel, audit-libs-devel, libsemanage-devel
|
BuildRequires: gcc, libselinux-devel, audit-libs-devel, libsemanage-devel
|
||||||
BuildRequires: libacl-devel, libattr-devel
|
BuildRequires: libacl-devel, libattr-devel
|
||||||
@ -188,6 +189,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.{la,a}
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 6 2024 zhangzikang <zhangzikang@kylinos.cn> - 2:4.14.3-2
|
||||||
|
- libsubid: Dealocate memory on exit
|
||||||
|
|
||||||
* Thu Feb 1 2024 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 2:4.14.3-1
|
* Thu Feb 1 2024 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 2:4.14.3-1
|
||||||
- update version to 4.14.3
|
- update version to 4.14.3
|
||||||
-Avoid null pointer dereference
|
-Avoid null pointer dereference
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user