chiark / gitweb /
gpg: Fix possible segv when attribute packets are filtered.
authorWerner Koch <wk@gnupg.org>
Fri, 3 Mar 2017 08:50:40 +0000 (09:50 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit5e8abbced1992082f524382e20bdf6f95f026a23
tree0f18ebb9ee524d3a4fa85d041767419cde863b68
parent80df73c1f79d8c6eebf48353bbfef3fe2fbcff78
gpg: Fix possible segv when attribute packets are filtered.

* g10/import.c (impex_filter_getval): Handle PKT_ATTRIBUTE the same as
PKT_USER_ID
(apply_drop_sig_filter): Ditto.
--

The old code was plainly wrong in that it considered PKT_ATTRIBUTE to
use a PKT_signature object.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 5f6f3f5cae8a95ed469129f9677782c17951dab3)

Gbp-Pq: Name 0047-gpg-Fix-possible-segv-when-attribute-packets-are-fil.patch
g10/import.c