Home GnuPG
Diffusion GnuPG bb61191aad98

gpg: Fix exporting of zero length user ID packets.

Description

gpg: Fix exporting 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 1.4 and 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
rG23944d0249b7: spelling: Correct achived to achieved.
Branches
Unknown
Tags
Unknown