Beautify patch, remove subincludedir version

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_cthelper?expand=0&rev=21
This commit is contained in:
Jan Engelhardt 2014-12-08 17:33:27 +00:00 committed by Git OBS Bridge
parent d2915c3e86
commit 3040d81e30
3 changed files with 18 additions and 5 deletions

View File

@ -1,3 +1,9 @@
From: Chris Horler <cshorler@googlemail.com>
Date: 2014-12-08 11:54:20 CET
References: https://bugzilla.netfilter.org/show_bug.cgi?id=990
Dereferencing h after freeing leads to undefined behavior.
--- libnetfilter_cthelper-1.0.0.orig/src/libnetfilter_cthelper.c 2012-06-05 17:59:28.810356258 +0100
+++ libnetfilter_cthelper-1.0.0/src/libnetfilter_cthelper.c 2014-12-07 19:52:55.769975500 +0000
@@ -113,11 +113,11 @@

View File

@ -1,7 +1,14 @@
-------------------------------------------------------------------
Mon Dec 8 17:27:32 UTC 2014 - jengelh@inai.de
- Remove version from subinclude directory; it tends to break
recompiles of third software after a library update.
-------------------------------------------------------------------
Sun Dec 7 19:58:44 UTC 2014 - cshorler@googlemail.com
- fix segfault due to free of free'd pointer
- Add fix_h_expect_policy_free.patch to fix crash due to following
a just-freed pointer [bnc#908875]
-------------------------------------------------------------------
Tue Sep 23 15:43:40 UTC 2014 - jengelh@inai.de

View File

@ -31,7 +31,7 @@ Source: http://netfilter.org/projects/libnetfilter_cthelper/files/%name-
Source2: http://netfilter.org/projects/libnetfilter_cthelper/files/%name-%version.tar.bz2.sig
Source3: baselibs.conf
Source4: %name.keyring
Patch0: fix_h_expect_policy_free.patch
Patch1: fix_h_expect_policy_free.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRequires: autoconf
#BuildRequires: automake >= 1.6
@ -62,13 +62,13 @@ Netfilter userspace helper infrastructure.
%prep
%setup -q
%patch0 -p1
%patch -P 1 -p1
%build
if [ ! -e configure ]; then
autoreconf -fi;
fi;
%configure --disable-static --includedir=%_includedir/%name-%version
%configure --disable-static --includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
@ -85,7 +85,7 @@ rm -f "%buildroot/%_libdir"/*.la;
%files devel
%defattr(-,root,root)
%_includedir/%name-%version
%_includedir/%name/
%_libdir/libnetfilter_cthelper.so
%_libdir/pkgconfig/libnetfilter_cthelper.pc