Bug 80684 - rpm segfaults with --df '%{checksig:armor}'
Summary: rpm segfaults with --df '%{checksig:armor}'
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-12-29 20:13 UTC by Need Real Name
Modified: 2007-04-18 16:49 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-12-29 21:54:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2002-12-29 20:13:27 UTC
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:
http://www.kleemann.org/crap/fetchmail-5.9.0-21.8.0.i386.rpm

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

This bug surfaced from the following thread on the rpm mailing list:
https://listman.redhat.com/mailman/private/rpm-list/2002-December/017411.html
Jeff Johnson suggested that I enter this into bugzilla.

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


How reproducible:
Always

Comment 1 Jeff Johnson 2002-12-29 20:47:45 UTC
Reproduced, thanks for the report.

Comment 2 Jeff Johnson 2002-12-29 21:54:00 UTC
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.