New upstream git snapshot prerelease which fixes a memory leak

This commit is contained in:
Steve Grubb 2019-03-26 18:15:26 -04:00
parent def445de56
commit c65ff125aa
4 changed files with 28 additions and 2 deletions

1
.gitignore vendored
View File

@ -161,3 +161,4 @@ audit-2.0.4.tar.gz
/audit-3.0-alpha3.tar.gz
/audit-3.0-alpha5.tar.gz
/audit-3.0-alpha6.tar.gz
/audit-3.0-alpha7.tar.gz

20
audit-2.8.6-memleak.patch Normal file
View File

@ -0,0 +1,20 @@
diff --git a/auparse/auparse.c b/auparse/auparse.c
index 650db02..fe0feb1 100644
--- a/auparse/auparse.c
+++ b/auparse/auparse.c
@@ -259,15 +259,6 @@ static event_list_t *au_get_ready_event(auparse_state_t *au, int is_test)
if (lowest && lowest->status == EBS_COMPLETE) {
lowest->status = EBS_EMPTY;
au->au_ready--;
- // Try to consolidate the array so that we iterate
- // over a smaller portion next time
- if (lowest == &lol->array[lol->maxi]) {
- au_lolnode *ptr = lowest;
- while (ptr->status == EBS_EMPTY && lol->maxi > 0) {
- lol->maxi--;
- ptr = &lol->array[lol->maxi];
- }
- }
return lowest->l;
}

View File

@ -3,11 +3,12 @@
Summary: User space tools for 2.6 kernel auditing
Name: audit
Version: 3.0
Release: 0.6.20181218gitbdb72c0%{?dist}
Release: 0.7.20190326git03e7489%{?dist}
License: GPLv2+
URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}-alpha6.tar.gz
Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
Patch1: audit-2.8.6-memleak.patch
BuildRequires: gcc swig
BuildRequires: openldap-devel
@ -98,6 +99,7 @@ Management Facility) database, through an IBM Tivoli Directory Server
%prep
%setup -q
%patch1 -p1
cp %{SOURCE1} .
%build
@ -264,6 +266,9 @@ fi
%attr(750,root,root) /sbin/audispd-zos-remote
%changelog
* Tue Mar 26 2019 Steve Grubb <sgrubb@redhat.com> 3.0-0.7.20190326git03e7489
- New upstream git snapshot prerelease which fixes a memory leak
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-0.6.20181218gitbdb72c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (audit-3.0-alpha6.tar.gz) = f34a4d77688689c7d64c234aac7a77288fe06b72ad6867255f1598f5ca3e8d946cccef6cd4c59935303fe7d92d9ca9497f3ba23705db6f6f4d7b9ac28a8e04ee
SHA512 (audit-3.0-alpha7.tar.gz) = 3ef27371bd485b805ce36f4b3dc9cc34055cb127226a7b9b9cb9773b6dc341d562069cd8fd09cb43f59335c322ebe28de8bb844b4557cb9e36e57f05e31f81d9