On Mon, Jul 20, 2020 at 07:32:41AM -0700, Thiago Macieira wrote:
I am not going to accept a null-pointer dereference in there. The static_cast<T *>(nullptr)-> must go.

this this construct is actually UB is disputed on wikipedia (in the offsetof article). anyway, this can be trivially bypassed by just using an arbitrary address and subtracting the offset. or using offsetof, indeed. in any case it's 3 minutes of work. ;)
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to