rpm/rpm-4.4.2-teCount-assert.patch

17 lines
422 B
Diff
Raw Normal View History

--- 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]++;
+ }
}
}