This patch fixes an off-by-one error in rpmalAllFileSatisfiesDepend() which

could lead to a segfault.
This commit is contained in:
Paul Nasrat 2007-02-22 12:09:46 +00:00
parent 4eee7e354b
commit be96c4edb3
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
{