Go to file
Chandler Carruth 28c1b294b8 Fix a bug in the readdir_r interceptor: when we reach the end of the
directory stream, the entry is not written to, instead *result is set to
NULL and the entry is not written to at all.

I'm still somewhat suspicious of the correct instrumention here --
I feel like it should be marking the written range as the pointer in
*result and the length (*result)->d_reclen in case the implementation
decides not to use the passed-in entry (if that's even allowed).
Finally, the definition of 'struct dirent' analog used in the
interceptor is wrong in 32-bit mode with _FILE_OFFSET_BITS=64 as it hard
codes the use of a pointer-sized offset.

I've added a somewhat goofy test for the bug I fixed via ASan --
suggestions on how to better test the interceptor logic itself welcome.

llvm-svn: 185998
2013-07-10 09:50:29 +00:00
clang Fixed comment of Sema::FindInstantiatedDecl. 2013-07-10 04:59:14 +00:00
clang-tools-extra cpp11-migrate: Fixes for r185811 2013-07-08 12:49:04 +00:00
compiler-rt Fix a bug in the readdir_r interceptor: when we reach the end of the 2013-07-10 09:50:29 +00:00
debuginfo-tests Now that we get non-trivial value parameters locations correct, un-XFAIL these tests. 2013-06-19 22:07:11 +00:00
libclc Implement mad24() and mul24() builtins 2013-07-08 17:27:13 +00:00
libcxx move __save_flags from <random> to <ios> in preparation for reuse; no functionality change 2013-07-09 20:34:14 +00:00
libcxxabi Updated CREDITS.TXT 2013-07-02 19:01:59 +00:00
lld [PECOFF][Writer] Compute the size of a chunk each time it's added rather than all at once. 2013-07-09 04:44:18 +00:00
lldb Call xmlFree on the node contents returned by xmlNodeGetContent, as the docs say to do. 2013-07-10 02:21:57 +00:00
llvm Fix typo 2013-07-10 01:57:39 +00:00
polly scop detection: remove an iteration over all uses 2013-07-05 20:24:47 +00:00