Bug 80684 - rpm segfaults with --df '%{checksig:armor}'
rpm segfaults with --df '%{checksig:armor}'
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2002-12-29 15:13 EST by Need Real Name
Modified: 2007-04-18 12:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-29 16:54:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-12-29 15:13:27 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
I was attempting to use /usr/lib/rpm/tgpg to verify rpm signatures but the
program failed.  I investiaged the script a bit and it appeared that the
following line was causing a segfault:

rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached

This occured with any of the red hat errata rpms including the following sample rpm:

If I remove ':armor' then rpm no longer seg faults.

This bug surfaced from the following thread on the rpm mailing list:
Jeff Johnson suggested that I enter this into bugzilla.

Version-Release number of selected component (if applicable): 4.1

How reproducible:
Comment 1 Jeff Johnson 2002-12-29 15:47:45 EST
Reproduced, thanks for the report.
Comment 2 Jeff Johnson 2002-12-29 16:54:00 EST
Crapola, an attempt to output unformatted binary data
directly broke %{siggpg:armor}.

Fixed in rpm-4.2-0.46, mktemp handling in the tgpg script
as well.

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