Home GnuPG
Diffusion GnuPG 498882296ffa

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

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 3a4b96e665fa639772854058737ee3d54ba0694e)

Details

Provenance
wernerAuthored on Dec 20 2012, 9:43 AM
Parents
rG20c95ef258f8: Fixed indentation and indented cpp directives
Branches
Unknown
Tags
Unknown

Event Timeline