[cfe-dev] Bug with address sanitizer?
Martin Martin
martin at infinio.com
Mon Apr 8 06:54:57 PDT 2013
Hi all,
The address sanitizer complains about the following code, which looks good
to me:
#include <unistd.h>
int main()
{
char buf;
pwrite(1, &buf, 0, 0);
}
Compiled with:
clang++ -fno-omit-frame-pointer -fno-optimize-sibiling-calls
-fsanitize=address -ggdb ./pwrite.c
This is Clang compiled from trunk, many months ago:
$ clang++ --version
clang version 3.3 (trunk 172721)
Target: x86_64-unknown-linux-gnu
Thread model: posix
I'll try with current Clang trunk.
Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130408/68b29bbb/attachment.html>
More information about the cfe-dev
mailing list