gnutls_ext_register causing memory corruption

Martin von Gagern Martin.vGagern at gmx.net
Mon Jun 8 18:53:05 CEST 2009


Simon Josefsson wrote:
> diff --git a/lib/gnutls_extensions.c b/lib/gnutls_extensions.c
> index e4e536f..8fe2edd 100644
> --- a/lib/gnutls_extensions.c
> +++ b/lib/gnutls_extensions.c
> @@ -331,6 +331,8 @@ void
>  _gnutls_ext_deinit (void)
>  {
>    gnutls_free (extfunc);
> +  extfunc = NULL;
> +  extfunc_size = 0;
>  }
>  
>  /**
> 

Looks good to me; no more segfaults at shutdown. I'll point the Gentoo
folks at this, should give the issue quite a broad testing, based on the
high number of subscribers on the cc lists of the involved bug reports.

Will you release a 2.8.1 to address the issue? Given that it's a
regression, and could cause major data loss, I wouldn't want to wait too
long for this to get released officially, especially as the patch
obviously won't make things any worse.

Greetings, and thanks for the fix,
 Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20090608/8f22d70c/attachment.pgp>


More information about the Gnutls-devel mailing list