SOURCES: rpm-rpmdeps-segv.patch (NEW) - kill rpmdeps crash on empt...

qboosh qboosh at pld-linux.org
Sat Nov 19 13:57:36 CET 2005


Author: qboosh                       Date: Sat Nov 19 12:57:36 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- kill rpmdeps crash on empty file list

---- Files affected:
SOURCES:
   rpm-rpmdeps-segv.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-rpmdeps-segv.patch
diff -u /dev/null SOURCES/rpm-rpmdeps-segv.patch:1.1
--- /dev/null	Sat Nov 19 13:57:36 2005
+++ SOURCES/rpm-rpmdeps-segv.patch	Sat Nov 19 13:57:31 2005
@@ -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);
================================================================



More information about the pld-cvs-commit mailing list