This patch fixes an off-by-one error in rpmalAllFileSatisfiesDepend() which
could lead to a segfault.
This commit is contained in:
parent
4eee7e354b
commit
be96c4edb3
|
@ -744,7 +744,7 @@ rpmalAllFileSatisfiesDepend(const rpmal al, const rpmds ds, alKey * keyp)
|
|||
|
||||
/*@-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++)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue