[PATCH] Add function gpgrt_annotate_leaked_object.

Werner Koch wk at gnupg.org
Wed Mar 23 19:35:42 CET 2016


On Wed, 23 Mar 2016 17:47, peter at lekensteyn.nl said:
> * src/gpg-error.h.in: add gpgrt_annotate_leaked_object to support
>   marking memory as non-leaked.

Cool.

> +#ifdef __SANITIZE_ADDRESS__
> +# define GPGRT_HAVE_LEAK_SANITIZER
> +#elif defined(__has_feature)
> +# if __has_feature(address_sanitizer)
> +#  define GPGRT_HAVE_LEAK_SANITIZER
> +# endif
> +#endif

Can you change this to explicitly detect gcc or clang?  I fear that
other compilers may use __SANITIZE_ADDRESS__ too.


Shalom-Salam,

   Werner

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




More information about the Gnupg-devel mailing list