Home GnuPG
Diffusion GnuPG 64665404e430

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.

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

Details

Provenance
wernerAuthored on Mar 30 2017, 10:35 AM
Parents
rGa8895c99a7d0: gpg: Revamp reading and writing of ring trust packets.
Branches
Unknown
Tags
Unknown