Null pointer in __vptr

Adam D Ruppe destructionator at gmail.com
Fri Nov 19 15:46:41 UTC 2021


On Friday, 19 November 2021 at 15:37:59 UTC, frame wrote:
> Is a null pointer entry in the __vptr[] valid or always a sign 
> for corruption/wrong cast somewhere? thx

The `destroy` function (as well as other class destruction) will 
null out the whole vtable to help make use-after-free an obvious 
error. Possible that happened to you.


More information about the Digitalmars-d-learn mailing list