[Bug 215455] AdressSanitizer provides memalign() confusing consumers
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 20 21:21:20 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215455
Bug ID: 215455
Summary: AdressSanitizer provides memalign() confusing
consumers
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-toolchain at FreeBSD.org
Reporter: jbeich at FreeBSD.org
Some build systems test symbol availability without prototypes in case of
broken/incomplete headers or due to simplicity. For one, Firefox has
AC_CHECK_FUNCS(memalign) which fails on FreeBSD but defines HAVE_MEMALIGN with
ASan. The code can be unwrapped into the following:
$ cat a.c
char memalign();
int main()
{
memalign();
return 0;
}
$ cc a.c -fsanitize=address
$ echo $?
0
$ cc a.c
/tmp/a-294bd8.o: In function `main':
a.c:(.text+0x12): undefined reference to `memalign'
$ echo $?
1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list