No test as reproducer requires particular glibc build.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'm concerned that this may break more things that it will fix.
We may have code relying on initialization done by an memcpy call from under some other interceptor. That's not very reliable, of course, and ideally all such effects should be handled in the top-level interceptor, so this change looks like movement in the right direction.
But please test it thoroughly.
Could you explain in more detail what is going wrong without it? It looks like gethostname interceptor updates shadow for all its side effects correctly.
Comment Actions
LGTM
compiler-rt/lib/msan/msan_interceptors.cpp | ||
---|---|---|
830 | (res >= 0 || errno == errno_ENAMETOOLONG) |
compiler-rt/lib/msan/msan_interceptors.cpp | ||
---|---|---|
830 | discussed offline, keep as is |
(res >= 0 || errno == errno_ENAMETOOLONG)