teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.4.2-teCount-assert.patch

Jeremy Katz 94c2b6
--- rpm-4.4.2/lib/rpmte.c.hack	2006-05-03 16:06:24.000000000 -0400
Jeremy Katz 94c2b6
+++ rpm-4.4.2/lib/rpmte.c	2006-05-03 16:07:42.000000000 -0400
Jeremy Katz 94c2b6
@@ -586,9 +586,10 @@
Jeremy Katz 94c2b6
 	    if (mydt != deptype)
Jeremy Katz 94c2b6
 		/*@innercontinue@*/ continue;
Jeremy Katz 94c2b6
 	    ix &= 0x00ffffff;
Jeremy Katz 94c2b6
-assert (ix < Count);
Jeremy Katz 94c2b6
-	    colors[ix] |= val;
Jeremy Katz 94c2b6
-	    refs[ix]++;
Jeremy Katz 94c2b6
+            if (i < Count) {
Jeremy Katz 94c2b6
+                colors[ix] |= val;
Jeremy Katz 94c2b6
+                refs[ix]++;
Jeremy Katz 94c2b6
+            }
Jeremy Katz 94c2b6
 	}
Jeremy Katz 94c2b6
     }
Jeremy Katz 94c2b6