[Bug libstdc++/96946] libstdc++ std::shared_ptr makes an "unrelated cast" that causes Clang's Control Flow Integrity sanitiser to crash
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 7 12:48:41 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96946
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And this fails:
#include <list>
struct IReporterFactory {
virtual ~IReporterFactory() = default;
};
class ReporterFactory : public IReporterFactory {};
int main()
{
std::list<ReporterFactory> l(1);
}
This sanitizer is crap.
More information about the Gcc-bugs
mailing list