summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2022-01-11 17:19:00 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2022-01-13 06:31:58 +0000
commitbf02126e39b50d7a961a6232ee9f5af05bdb5ea2 (patch)
tree18c8bb1b7b4758388fbb211ae998573475ff724b /tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp
parentd2e8310680f622eed6f46542d69bd4e6ce330429 (diff)
QCache: fix potential crash in trim()
We use raw pointers to the Nodes in the QHash which is inherently fine, but we are then subject to invalidation when nodes are moved around during deletion. In trim() we don't actually need to iterate the linked-list since the node we are interested in is always chain.prev Fixes: QTBUG-99710 Task-number: QTBUG-99224 Task-number: QTBUG-99240 Change-Id: I9c2ed69b29e3cadca013113a3553deb44d7382fc Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> (cherry picked from commit 8c5e31536ac74f643d4dd371d281fd9416864a45) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp')
0 files changed, 0 insertions, 0 deletions