From f063495a9a479e094216875001e3e006344eebcd Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sat, 3 Aug 2019 11:10:09 +0100 Subject: [PATCH] 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. --- sigcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2