[pkg-gnupg-maint] Bug#828109: Bug#828109: Bug#828109: gnupg2: does not react well to bad ECDSA subkey packet

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Jun 27 17:43:20 UTC 2016


On Mon 2016-06-27 02:25:33 -0400, NIIBE Yutaka wrote:
> Sorry for the trouble because of my subkey.

thank you for being the experimental subject on whome the bugs are
found, gniibe :)

> And I found a bug for --list-packet option.  It's long standing, it's
> there in 1.0.
>
> diff --git a/g10/mainproc.c b/g10/mainproc.c
> index bd738ab..c191fe0 100644
> --- a/g10/mainproc.c
> +++ b/g10/mainproc.c
> @@ -1328,7 +1328,7 @@ do_proc_packets (ctrl_t ctrl, CTX c, iobuf_t a)
>            /* Stop processing when an invalid packet has been encountered
>             * but don't do so when we are doing a --list-packets.  */
>            if (gpg_err_code (rc) == GPG_ERR_INV_PACKET
> -              && opt.list_packets != 2 )
> +              && opt.list_packets == 0)
>              break;
>            continue;
>  	}
>

Sounds like this needs to be applied upstream, no?

   --dkg



More information about the pkg-gnupg-maint mailing list