[gnutls-devel] [PATCH, RFC] Fix memory leak in wrap_nettle_hash_algorithm().

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Oct 12 21:18:48 CEST 2015


On Mon, 2015-10-12 at 15:24 +0300, Lennert Buytenhek wrote:
> wrap_nettle_hash_algorithm() leaks an mpz_t if it is called with
> pk == GNUTLS_PK_RSA and sig == NULL, in which case it will return
> without going through the regular exit path that clears the mpz_t
> it allocated at the beginning of the function.  Use the regular
> exit path instead to fix this.

Thank you, applied.





More information about the Gnutls-devel mailing list