Bug 103865 - two bugs in rpmal that may lead to segfaults
two bugs in rpmal that may lead to segfaults
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-09-05 16:46 EDT by Michael Schröder
Modified: 2007-04-18 12:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-26 11:55:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
proposed patch (607 bytes, patch)
2003-09-05 16:47 EDT, Michael Schröder
no flags Details | Diff

  None (edit)
Description Michael Schröder 2003-09-05 16:46:54 EDT
1) the search for the last hit of the match in rpmalAllSatisfiesDepend()
   may check one element too much, the "<=" should be "<".
2) rpmalMakeIndex should set ai->size to the actual number of elements, as
   some of them may be skipped if the color doesn't match.
Comment 1 Michael Schröder 2003-09-05 16:47:39 EDT
Created attachment 94263 [details]
proposed patch
Comment 2 Jeff Johnson 2003-12-26 11:55:22 EST
Hmmm, thouhght I just closed this.

1) is definite bug, been fixed several times, will get it right

2) is bug iff _transaction_color !- 0 or 3, noone has tried that
config afaik. Nice catch.

Thanks for patch, added to rpm-4.3.

Note You need to log in before you can comment on or make changes to this bug.