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 | ||
---|---|---|
11 | missing space | |
30 | Allocate this with new(), otherwise you get undefined behavior at exit. | |
33 | This can be re-phrased as assert(__msan_test_shadow(...) != -1). | |
34 | 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_; | |
48 | 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