From ca3040616f683afd8ef9eb6db1ebb74245ac18a4 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 27 Apr 2005 04:09:45 +0000 Subject: [PATCH] - add patch to fix segfault with non-merged hdlists --- rpm-4.4.1-nonmerged.patch | 11 +++++++++++ rpm.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 rpm-4.4.1-nonmerged.patch diff --git a/rpm-4.4.1-nonmerged.patch b/rpm-4.4.1-nonmerged.patch new file mode 100644 index 0000000..4c949ef --- /dev/null +++ b/rpm-4.4.1-nonmerged.patch @@ -0,0 +1,11 @@ +--- rpm-4.4.1/lib/rpmal.c~ 2005-04-26 16:29:57.000000000 -0400 ++++ rpm-4.4.1/lib/rpmal.c 2005-04-27 00:01:59.000000000 -0400 +@@ -744,7 +744,7 @@ + + /*@-branchstate@*/ /* FIX: ret is a problem */ + for (found = 0, ret = NULL; +- die <= al->dirs + al->numDirs && dieCompare(die, dieNeedle) == 0; ++ die < al->dirs + al->numDirs && dieCompare(die, dieNeedle) == 0; + die++) + { + diff --git a/rpm.spec b/rpm.spec index da89426..dc6ecd3 100644 --- a/rpm.spec +++ b/rpm.spec @@ -20,7 +20,7 @@ Name: rpm %define version 4.4.1 Version: %{version} %{expand: %%define rpm_version %{version}} -Release: 9 +Release: 10 Group: System Environment/Base Source: ftp://jbj.org/pub/rpm-devel/rpm-%{rpm_version}.tar.gz Patch0: rpm-4.4.1-posttrans.patch @@ -29,6 +29,7 @@ Patch2: rpm-4.4.1-hkp-disable.patch Patch3: rpm-4.4.1-read-macro.patch Patch4: rpm-4.4.1-fileconflicts.patch Patch5: rpm-4.4.1-prereq.patch +Patch6: rpm-4.4.1-nonmerged.patch License: GPL Conflicts: patch < 2.5 %ifos linux @@ -143,6 +144,7 @@ shell-like rules. %patch3 -p1 %patch4 -p1 -b .fileconflicts %patch5 -p1 -b .prereq +%patch6 -p1 %build @@ -513,6 +515,9 @@ exit 0 %{__includedir}/popt.h %changelog +* Wed Apr 27 2005 Jeremy Katz - 4.4.1-10 +- add patch to fix segfault with non-merged hdlists + * Thu Mar 31 2005 Thomas Woerner 4.4.1-9 - enabled prereqs again