aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2023-09-28 10:36:46 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2023-09-28 16:42:27 +0200
commit1786f6c1839f4ce5ee36b585b29f9c0a10c7e376 (patch)
tree2399434262050d951136c1c745fc211ee5208ea9 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parent42daf587473aff0789306c92ebc0e7621b57149c (diff)
QQmlObjectCreator: Don't crash when installing bindings
When creating qqml object, all pending bindings are installed and run once to determine their dependencies. If they do not have any, they cannot change and are therefore removed. A missing check for the ref count of the binding after it was set lead to a use-after-free. A check was added to determine if the binding has enough remaining references to be used. Pick-to: 6.6 6.5 6.2 Fixes: QTBUG-117642 Change-Id: Ida94d46d6f482a5294b19c41578e592b42906634 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
0 files changed, 0 insertions, 0 deletions