teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone
Blob Blame History Raw
--- rpm-4.4.2/lib/rpmte.c.hack	2006-05-03 16:06:24.000000000 -0400
+++ rpm-4.4.2/lib/rpmte.c	2006-05-03 16:07:42.000000000 -0400
@@ -586,9 +586,10 @@
 	    if (mydt != deptype)
 		/*@innercontinue@*/ continue;
 	    ix &= 0x00ffffff;
-assert (ix < Count);
-	    colors[ix] |= val;
-	    refs[ix]++;
+            if (i < Count) {
+                colors[ix] |= val;
+                refs[ix]++;
+            }
 	}
     }