Simple test case to verify that an instance of a derived class with virtual base is properly poisoned
Details
Diff Detail
Event Timeline
test/msan/dtor-derived-class.cc | ||
---|---|---|
12 | missing space | |
31 | Allocate this with new(), otherwise you get undefined behavior at exit. | |
34 | This can be re-phrased as assert(__msan_test_shadow(...) != -1). | |
35 | An object may contain padding that does not have to be initialized. It's better to check user-visible things, like B::x_ and D::y_; | |
49 | Do you check that the local pointer to b is not poisoned? It's true, of course, why would it be? |
- modified test to be more concise, and check the local pointer to the destroyed object
LGTM
test/msan/dtor-derived-class.cc | ||
---|---|---|
35 | Please remove this check, and the same check for "b". |
missing space