gpg: Ignore too large user ids during import.
authorWerner Koch <wk@gnupg.org>
Wed, 4 Jul 2018 07:53:10 +0000 (09:53 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 4 Jul 2018 08:08:36 +0000 (10:08 +0200)
commitcb6b925f94b42c91fe8a7ed8bb22d98984538efc
tree353c57041a33fa661c6e67c1bc25c9102637f6b0
parent5b47b4613221b1fd38af3281a8cf71d78adf4de8
gpg: Ignore too large user ids during import.

* g10/import.c (read_block): Add special treatment for bad user ids
and comment packets.
--

See
GnuPG-bug-id: 4022
for an example of a bogus user id.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 01cd66f9faf1623833e6afac84164de5a136ecff)
g10/import.c