No test as reproducer requires particular glibc build.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
84,850 ms | linux > libFuzzer.libFuzzer::only-some-bytes-fork.test |
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 | ||
---|---|---|
833 | (res >= 0 || errno == errno_ENAMETOOLONG) |
compiler-rt/lib/msan/msan_interceptors.cpp | ||
---|---|---|
833 | discussed offline, keep as is |
(res >= 0 || errno == errno_ENAMETOOLONG)