RPM Community Forums

Mailing List Message of <rpm-devel>

Re: double-free in current CVS

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 13 Oct 2007 - 17:01:15 CEST
Message-Id: <EEFE08D2-0A40-45C5-AC1F-6B652D201EC5@mac.com>

On Oct 13, 2007, at 10:32 AM, Bernhard Rosenkraenzer wrote:

> With current CVS, I keep getting
>
> *** glibc detected *** rpm: double free or corruption (out):  
> 0x09192040 ***
>
> when installing a package built with rpm 4.4.5 without gpg signature.
>
> I haven't really tracked it down yet, but there seems to be a code  
> path that
> triggers an sha1 checksum to be freed twice -- changing
> dig->sig=_free(dig->sig); in rpmpgp.c pgpSetSig() to dig->sig=NULL;  
> makes it
> work (but is quite certainly not the right thing to do, it just helps
> locating the problem).

Fixed.

73 de Jeff
Received on Sat Oct 13 17:02:03 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.