[Development] QProperty and library coding guide

Oswald Buddenhagen oswald.buddenhagen at gmx.de
Mon Jul 20 17:40:06 CEST 2020

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. ;)

More information about the Development mailing list