The wrapper clears shadow for retval.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 800 | Do we also check &cbrv is not changed? | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 800 | How would it change? It's on the stack. | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 800 | My question was confusing. Since pthread_join takes "void **retval", do we also check *retval has zero shadow? | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 800 | Yes, it is checked by this line actually. | |
| compiler-rt/test/dfsan/custom.cpp | ||
|---|---|---|
| 800 | 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?