From: Jonathan McDowell Date: Sat, 3 Aug 2019 10:10:09 +0000 (+0100) Subject: Fix header size for v5 packet sig checks X-Git-Tag: onak-0.6.0~40 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=f063495a9a479e094216875001e3e006344eebcd;p=onak.git Fix header size for v5 packet sig checks The keyheader for a v5 signature has a 4 byte length instead of a 2 byte length, but the structure hadn't been increased in size. --- diff --git a/sigcheck.c b/sigcheck.c index 0fe87b5..04f2676 100644 --- a/sigcheck.c +++ b/sigcheck.c @@ -53,7 +53,7 @@ int check_packet_sighash(struct openpgp_publickey *key, struct sha384_ctx sha384_context; struct sha512_ctx sha512_context; #endif - uint8_t keyheader[3]; + uint8_t keyheader[5]; uint8_t packetheader[5]; uint8_t trailer[10]; uint8_t hash[64];