gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] Re: leak using gcrypt


From: Simon Josefsson
Subject: [gnutls-dev] Re: leak using gcrypt
Date: Wed, 09 Feb 2005 18:54:05 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

"ZIGLIO, Frediano, VF-IT" <address@hidden> writes:

> Using gcrypt gnutls leak some memory (about 2 Kbi).
> Following a small program that leak memory
>
> #include <gnutls/gnutls.h>
>
> int main()
> {
>         gnutls_global_init();
>         gnutls_global_deinit();
>         return 0;
> }
>
> gnutls_global_init calls gc_init to initialize gcrypt however
> gnutls_global_deinit does not call a gc_deinit (which doesn't even
> exist).
> Leak appear in the call of gcry_check_version. From Valgrind log:

Thanks, I believe this is a known issue with libgcrypt.  The memory
should not increase even if you init/deinit several times, as far as I
understood, though.

One of my goal is to make libgcrypt optional (although preferred), but
creating an abstract interface for the public-key operations required
some effort, and I don't have any resources to finish it right now.

It is possible to use Nettle for non-PK operations (hashing, symmetric
ciphers) today, though, but libgcrypt is still required.

Thanks,
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]