The wrapper clears shadow for retval.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
| Time | Test | |
|---|---|---|
| 60 ms | x64 windows > LLVM.CodeGen/XCore::threads.ll |
Event Timeline
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 791 | Do we also check &cbrv is not changed? | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 791 | How would it change? It's on the stack. | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 791 | My question was confusing. Since pthread_join takes "void **retval", do we also check *retval has zero shadow? | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 791 | Yes, it is checked by this line actually. | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 791 | Thank you for explaining this. We cannot test dfsan_read_label(&cbrv, sizeof(cbrv)) because *cbrv is actually 2. | |
Do we also check &cbrv is not changed?