Home GnuPG
Diffusion GnuPG f0b33b6fb8e0

gpg: Import only packets which are allowed in a keyblock.
f0b33b6fb8e0Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Import only packets which are allowed in a keyblock.

* g10/import.c (valid_keyblock_packet): New.
(read_block): Store only valid packets.

A corrupted key, which for example included a mangled public key
encrypted packet, used to corrupt the keyring. This change skips all
packets which are not allowed in a keyblock.

(cherry-picked from commit f795a0d59e197455f8723c300eebf59e09853efa)

Details

Provenance
wernerAuthored on Dec 20 2012, 9:43 AM
Parents
rGd61f7402f2b0: gpg: Make commit 2b3cb2ee actually work
Branches
Unknown
Tags
Unknown

Event Timeline