grcypt.h should use __alloc_size__ attribute.

Werner Koch wk at gnupg.org
Sun Apr 8 21:16:36 CEST 2012


On Fri,  6 Apr 2012 17:34, fnord.hammer at gmail.com said:

> void *gcry_malloc (size_t n) _GCRY_GCC_ATTR_MALLOC
> _GCRY_GCC_ATTR_ALLOC_SIZE ((1));

I am not sure whether this is a good idea.  The actually allocated
object may be larger than something allocated by malloc.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list