Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MSan use-after-destroy does not poison objects with implicit destructors #596
During code generation, no destructor exists to emit a destructor body for, so no members are poisoned. In order to do, a destructor must be generated for this object.
The creation of implicit destructors occurs during semantic analysis (clang/sema/). However, this step has no access to command line options.
Either semantic analysis must have access to the command line options, to check for msan and emit the required destructor, or another approach must be taken.