Home GnuPG
Diffusion GnuPG 2975eee42000

gpg: Fix export porting of zero length user ID packets.

Description

gpg: Fix export porting of zero length user ID packets.

* g10/build-packet.c (do_user_id): Avoid indeterminate length header.

We are able to import such user ids but when exporting them the
exported data could not be imported again because the parser bails out
on invalid keyrings. This is now fixed and should be backported.

Note that in 2.0 this is only an issue for attribute packets. In 2.1
user IDs were also affected.a

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 30 2017, 10:35 AM
Parents
rG5c599e4f6edd: scd: Support OpenPGP card V3 for RSA.
Branches
Unknown
Tags
Unknown