diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-06 16:56:26 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-01-06 22:07:09 +0000 |
commit | bccbb70de548c5defcb2ab58a987ef2e966788bc (patch) | |
tree | 42d4d3ccd9b49d55a8f9dc36ca5b123a1cdf9388 /doc/README | |
parent | 033205bb598fe49e6ca4c90fb4e046e996c20252 (diff) |
Fix UB in tst_QMetaType
Don't pass around meta-type IDs in QMetaType::Type
variables. It leads to reading values from an enum
variable that are invalid.
Fix by passing the IDs around as int.
Found by UBSan:
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp:408:5: runtime error: load of value 4028, which is not a valid value for type 'Type'
Change-Id: Idd106ee3d7960fe3d8fefc0fc5830fc22d38a513
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'doc/README')
0 files changed, 0 insertions, 0 deletions