gpg: Fix off-by-one read in the attribute subpacket parser.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 16:28:25 +0000 (17:28 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 16:28:25 +0000 (17:28 +0100)
commit0988764397f99db4efef1eabcdb8072d6159af76
tree55764de2364c17baae8241d23ec6bd114f3c411e
parentb716e6a69919b89c7887d6c7c9b97e58d18fdf95
gpg: Fix off-by-one read in the attribute subpacket parser.

* g10/parse-packet.c (parse_attribute_subpkts): Check that the
attribute packet is large enough for the subpacket type.
--

Reported-by: Hanno Böck
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/parse-packet.c