]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- kill rpmdeps crash on empty file list
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Nov 2005 12:57:31 +0000 (12:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-rpmdeps-segv.patch -> 1.1

rpm-rpmdeps-segv.patch [new file with mode: 0644]

diff --git a/rpm-rpmdeps-segv.patch b/rpm-rpmdeps-segv.patch
new file mode 100644 (file)
index 0000000..09e1ded
--- /dev/null
@@ -0,0 +1,13 @@
+--- rpm-4.4.3/tools/rpmdeps.c.orig     2005-11-14 14:35:31.000000000 +0100
++++ rpm-4.4.3/tools/rpmdeps.c  2005-11-19 13:58:20.277340896 +0100
+@@ -267,6 +267,10 @@
+     switch (rpmdeps_mode) {
+     case RPMDEP_RPMFC:
++      /* rpmfcApply() doesn't expect empty file list */
++      if(ac <= 0)
++              break;
++
+       /* Build file class dictionary. */
+       fc = rpmfcNew();
+       xx = rpmfcClassify(fc, av, NULL);
This page took 0.037432 seconds and 4 git commands to generate.