strange definition in gcrypt.h, bug?

Gabriele Monti psicus78 at gmail.com
Sat Nov 10 12:16:52 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
I was having a look at libgcrypt source code. I found what could be a
bug, or maybe something meant to. I'd just like to report it:

#if _GCRY_GCC_VERSION >= 300200
#define _GCRY_GCC_ATTR_MALLOC  __attribute__ ((__malloc__))
#endif

since _GCRY_GCC_VERSION is computed using:


#define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
                             + __GNUC_MINOR__ * 100 \
                             + __GNUC_PATCHLEVEL__)

It will never be greater than 300200, maybe you meant 30200, or maybe
the code is there but attribute __malloc__ is not used yet?

Bye!


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHNZMhXxCyXyOPfh4RApwcAJ0dbtK97ardhd0Kwn863og0f80kbACeJM9Q
uRRQ1G4Iwj/DmXgxe9gdhHQ=
=bJI0
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list