Hi Robert,

with gcc's UBSAN there are no reported issues when running tst_qproperty. This 
doesn't come as a surprise, considering that we do obtain a pointer whose value 
corresponds with that of a valid pointer to the object. I guess technically we 
still might need to std::launder it, but I leave determining that detail to 
Ville, and it shouldn't matter in practice anwyay.

Regards,
Fabian

--
Fabian Kosmale
Software Engineer

The Qt Company GmbH
Erich-Thilo-Str. 10
D-12489 Berlin
[email protected]
+49 1638686070
http://qt.io


Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

--

________________________________________
Von: Development <[email protected]> im Auftrag von Robert 
Löhning <[email protected]>
Gesendet: Donnerstag, 1. Oktober 2020 21:15
An: [email protected]
Betreff: Re: [Development] New property system

Am 26.08.20 um 09:18 schrieb Lars Knoll:
> (...)
> This is the one place where we rely on a non standard (but supported by all 
> our compilers) feature. Namely the ability to call offsetof() on non-standard 
> types.

Hi Lars,

how will undefined behavior sanitizers (UBSAN) react to this?

Cheers,
Robert
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to