[PATCH v2] Add function gpgrt_annotate_leaked_object.
Werner Koch
wk at gnupg.org
Thu Mar 24 10:19:58 CET 2016
On Wed, 23 Mar 2016 23:23, peter at lekensteyn.nl said:
> I doubt that other compilers set __SANITIZE_ADDRESS__, but have added
> the __GNUC__ guard just to be sure.
That was my idea. I slightly chnaged it to but the __GNUC__ guard
around the entire block and I also added a void marker for P:
static GPGRT_INLINE void
gpgrt_annotate_leaked_object (const void *p)
{
#ifdef GPGRT_HAVE_LEAK_SANITIZER
__lsan_ignore_object(p);
#else
(void)p;
#endif
}
commit 52c3606.
Thanks,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-devel
mailing list