diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-11-29 10:02:17 -0800 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-11-30 01:42:50 +0000 |
commit | 6855b80eae71d8339b2b5d6d45b71f2306293584 (patch) | |
tree | d9cf41374002b7e40f11dd181a94fc307bd612f7 /src/corelib/thread/qmutex_win.cpp | |
parent | 60d9509cb00526e8530926b19b2366e584fdf30a (diff) |
QList::count(T): remove the &* hack on iterators
Use data() and data() + size() instead.
This solves an UB when the list is in its default-constructed state,
for which constData() == nullptr.
Pick-to: 6.2
Fixes: QTBUG-98770
Change-Id: I2cffe62afda945079b63fffd16bc165978c769f6
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/thread/qmutex_win.cpp')
0 files changed, 0 insertions, 0 deletions