summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qobject.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-11-25 21:09:27 +0100
committerAndy Shaw <andy.shaw@qt.io>2020-11-26 07:52:28 +0000
commit5283ee71040dc2f3a762e9cc5e807fb17587e9b7 (patch)
tree2e872bb04434c4393dd7f2f82cf135dd03e69d0e /src/corelib/kernel/qobject.cpp
parentf4ff1e73b0caf7dcd20c96519d0b6ade806b725e (diff)
QCache: Fix crash observed in tst_QAccessibility
Fixes a use-after-free which can reliably be observed under ASAN. In QConfFileSettingsPrivate::~QConfFileSettingsPrivate we call unusedCache->insert(conf_file->name, conf_file, ...) Note that the key is a member of the object. Thus by deleting the object before using the key, we dereference a dangling pointer. Amends f08492c6fd9818c7d80b1725355453e179b4d85b. Pick-to: dev 6.0.0 Change-Id: I3a550fc73446b72dd46456232e85f6d206d64c01 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions