Home GnuPG
Diffusion GnuPG 7bf24e814611

gpg: Fix actual leak and possible leaks in the packet parser.

Description

gpg: Fix actual leak and possible leaks in the packet parser.

* g10/packet.h (struct parse_packet_ctx_s): Change LAST_PKT deom a
pointer to its struct.
(init_parse_packet): Adjust for LAST_PKT not being a pointer.
* g10/parse-packet.c (parse): Ditto. Free the last packet before
storing a new one in case of a deep link.
(parse_ring_trust): Adjust for LAST_PKT not being a pointer.
* g10/free-packet.c (free_packet): Ditto.
* g10/t-keydb-get-keyblock.c (do_test): Release keyblock.

Details

Provenance
wernerAuthored on Mar 30 2017, 4:01 PM
Parents
rG64665404e430: gpg: Fix export porting of zero length user ID packets.
Branches
Unknown
Tags
Unknown