cve.bz

CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor

Filter

A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.

What the weakness is: CWE-1045 at MITRE. All weaknesses

Ask an AI about CWE-1045

Show the promptExplain CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1045.html and https://cve.bz/cve/cwe/1045?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

No records match.