Home GnuPG

Add function gpgrt_annotate_leaked_object.
52c3606b2384Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add function gpgrt_annotate_leaked_object.

* src/gpg-error.h.in: add gpgrt_annotate_leaked_object to support
  marking memory as non-leaked for Clang and GCC.

This annotation can be used to mark objects as explicitly leaked such
that it can be ignored in tools like LeakSanitizer.

The GPGRT_HAVE_LEAK_SANITIZER macro is explicitly not undefined to
support -fsanitize=leak, a user or configure script could then decide to
add this macro when just -fsanitize=leak is given.

Additional changes by -wk:

  • But GNUC guard around the entire GPGRT_HAVE_LEAK_SANITIZER detection.
  • Add NEWS entry.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
LekensteynAuthored on Mar 23 2016, 11:23 PM
wernerCommitted on Mar 24 2016, 10:15 AM
Parents
rE140cfd51cee7: syscfg: Add lock-obj-pub files for {armv5, armv6, x86_64}-musl targets
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rE52c3606b2384: Add function gpgrt_annotate_leaked_object. (authored by Peter Wu <peter@lekensteyn.nl>).Mar 24 2016, 10:15 AM