[Pkg-gnupg-maint] Bug#773507: explicit buffer overrun

NIIBE Yutaka gniibe at fsij.org
Wed Jan 7 09:09:12 CET 2015


On 01/07/2015 02:54 PM, NIIBE Yutaka wrote:
> Here's my fix.  I'm going to apply this change since it's obvious
> simple fix and there will be no conflict.
> 
> diff --git a/dirmngr/ldap.c b/dirmngr/ldap.c
> index 478fdfd..00df167 100644
> --- a/dirmngr/ldap.c
> +++ b/dirmngr/ldap.c
> @@ -588,7 +588,7 @@ start_cert_fetch_ldap (ctrl_t ctrl, cert_fetch_context_t *context,
>        strlist_t sl;
>        char *url;
> 
> -      if (argc >= sizeof argv -1)
> +      if (argc >= DIM (argv) - 1)
>          {
>            /* Too many patterns.  It does not make sense to allow an
>               arbitrary number of patters because the length of the

Pushed.
-- 



More information about the Gnupg-devel mailing list