Compare commits
No commits in common. "000f128a298609e880661fdd5998d6a4dd798044" and "7872aa40a0afe59036870472a4dd97041dd40b5d" have entirely different histories.
000f128a29
...
7872aa40a0
BIN
popt-1.18.tar.gz
Normal file
BIN
popt-1.18.tar.gz
Normal file
Binary file not shown.
BIN
popt-1.19.tar.gz
BIN
popt-1.19.tar.gz
Binary file not shown.
20
popt.spec
20
popt.spec
@ -1,6 +1,6 @@
|
|||||||
Name: popt
|
Name: popt
|
||||||
Version: 1.19
|
Version: 1.18
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: C library for parsing command line parameters
|
Summary: C library for parsing command line parameters
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/rpm-software-management/popt/
|
URL: https://github.com/rpm-software-management/popt/
|
||||||
@ -11,8 +11,6 @@ Patch1: fix-handle-newly-added-asset-.-call-like-elsewhere.patch
|
|||||||
Patch2: fix-permit-reading-aliases-remove-left-over-goto-exi.patch
|
Patch2: fix-permit-reading-aliases-remove-left-over-goto-exi.patch
|
||||||
Patch3: fix-coverity-CID-1057440-Unused-pointer-value-UNUSED.patch
|
Patch3: fix-coverity-CID-1057440-Unused-pointer-value-UNUSED.patch
|
||||||
|
|
||||||
Patch9000: revert-fix-memory-leak-regressions-in-popt.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc git gettext
|
BuildRequires: gcc git gettext
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -77,22 +75,10 @@ make check
|
|||||||
%{_libdir}/lib%{name}.a
|
%{_libdir}/lib%{name}.a
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc README
|
%doc CHANGES README
|
||||||
%{_mandir}/man3/%{name}.3.gz
|
%{_mandir}/man3/%{name}.3.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Dec 13 2022 Jiayi Chen <1398871225@qq.com> - 1.19-2
|
|
||||||
- Revert fix memory leak regressions in popt introduced by updating to 1.19
|
|
||||||
|
|
||||||
* Fri Nov 18 2022 dillon chen <dillon.chen@gmail.com> - 1.19-1
|
|
||||||
- update to 1.19
|
|
||||||
|
|
||||||
* Thu Aug 18 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.18-3
|
|
||||||
- Revert fix memory leak regressions in popt
|
|
||||||
|
|
||||||
* Mon Aug 15 2022 panxiaohe <panxh.life@foxmail.com> - 1.18-2
|
|
||||||
- Fix incorrect handling of leftovers with poptStuffArgs and memory leak
|
|
||||||
|
|
||||||
* Sat Jul 25 2020 zhangxingliang <zhangxingliang3@huawei.com> - 1.18-1
|
* Sat Jul 25 2020 zhangxingliang <zhangxingliang3@huawei.com> - 1.18-1
|
||||||
- Type:update
|
- Type:update
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version_control: github
|
||||||
src_repo: rpm-software-management/popt
|
src_repo: rpm-software-management/popt
|
||||||
tag_pattern: popt-(.*)-release
|
tag_prefix: ^popt-
|
||||||
seperator: "."
|
seperator: "."
|
||||||
|
|||||||
@ -1,41 +0,0 @@
|
|||||||
From 3258b29e47ec0113048070f72a63a14b6e6437eb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jiayi Chen <1398871225@qq.com>
|
|
||||||
Date: Tue, 13 Dec 2022 16:09:46 +0800
|
|
||||||
Subject: [PATCH] revert: fix memory leak regressions in popt
|
|
||||||
|
|
||||||
Revert a previous patch in commit 7219e1ddc1e8606dda18c1105df0d45d8e8e0e09,
|
|
||||||
which will cause some problems.
|
|
||||||
|
|
||||||
This patch is automatically introduced by updating version to 1.19.
|
|
||||||
|
|
||||||
https://gitee.com/src-openeuler/popt/issues/I5PL76
|
|
||||||
---
|
|
||||||
src/popt.c | 5 +----
|
|
||||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/popt.c b/src/popt.c
|
|
||||||
index 5710f80..9908ba4 100644
|
|
||||||
--- a/src/popt.c
|
|
||||||
+++ b/src/popt.c
|
|
||||||
@@ -216,9 +216,6 @@ void poptResetContext(poptContext con)
|
|
||||||
else
|
|
||||||
con->os->next = 0;
|
|
||||||
|
|
||||||
- for (i = 0; i < con->numLeftovers; i++) {
|
|
||||||
- con->leftovers[i] = _free(con->leftovers[i]);
|
|
||||||
- }
|
|
||||||
con->numLeftovers = 0;
|
|
||||||
con->nextLeftover = 0;
|
|
||||||
con->restLeftover = 0;
|
|
||||||
@@ -1537,7 +1534,7 @@ poptContext poptFreeContext(poptContext con)
|
|
||||||
con->numExecs = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < con->numLeftovers; i++) {
|
|
||||||
- con->leftovers[i] = _free(con->leftovers[i]);
|
|
||||||
+ con->leftovers[i] = _free(&con->leftovers[i]);
|
|
||||||
}
|
|
||||||
con->leftovers = _free(con->leftovers);
|
|
||||||
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user