[apparmor] Memory leaks in parser/parser_regex.c (at least)

intrigeri intrigeri at debian.org
Sat Aug 22 15:19:22 UTC 2015


with the attached (very rough, e.g. not sure if any of those
additional build-deps are needed) debdiff applied on top of the Debian
2.10-1 packaging,  I see test suite failures such as:

==22749==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 34 byte(s) in 1 object(s) allocated from:
    #0 0x7f8faa42506f in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x6006f)
    #1 0x45dce0 in test_filter_slashes /tmp/buildd/apparmor-2.10/parser/parser_regex.c:800
    #2 0x45dce0 in main /tmp/buildd/apparmor-2.10/parser/parser_regex.c:1025
    #3 0x7f8fa8e10b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)

My understanding is that the test suite exits immediately after this
test case fails, so once this one is fixed, there may be more issues
that ASAN & friends can detect later on.

Should I file a bug report on Launchpad, or is someone willing to look
into it soonish and won't forget?


More information about the AppArmor mailing list