gcrypt.h uses malloc without including stdlib.h

Andreas Metzler ametzler at downhill.at.eu.org
Mon Feb 12 19:12:47 CET 2007

On 2007-02-12 Werner Koch <wk at gnupg.org> wrote:
> On Sun, 11 Feb 2007 13:59, ametzler at downhill.at.eu.org said:

>> gcry_pth_init defined in gcrypt.h invokes malloc without
>> #include <stdlib.h>. Is this done by purpose and should every program
>> using threading include the header or should gcrypt.h be changed?

> I always include stdlib.h so thatproblem never hit me.

An example program in gnutls' docs triggered the problem. ;-)

> No problem to change gcrypt.h.  Will do so.

cu andreas
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

More information about the Gcrypt-devel mailing list