17 lines
540 B
Diff
17 lines
540 B
Diff
|
Fixes an off-by-one error in rpmalAllFileSatisfiesDepend() which
|
||
|
could lead to a segfault.
|
||
|
|
||
|
Already included in rpm-4.4.7
|
||
|
|
||
|
--- ./lib/rpmal.c.orig 2005-12-14 20:53:12.000000000 +0000
|
||
|
+++ ./lib/rpmal.c 2005-12-14 20:54:28.000000000 +0000
|
||
|
@@ -744,7 +744,7 @@ rpmalAllFileSatisfiesDepend(const rpmal
|
||
|
|
||
|
/*@-branchstate@*/ /* FIX: ret is a problem */
|
||
|
for (found = 0, ret = NULL;
|
||
|
- die <= al->dirs + al->numDirs && dieCompare(die, dieNeedle) == 0;
|
||
|
+ die < al->dirs + al->numDirs && dieCompare(die, dieNeedle) == 0;
|
||
|
die++)
|
||
|
{
|
||
|
|