aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquicktextfield.cpp
diff options
context:
space:
mode:
authorMitch Curtis <[email protected]>2025-03-07 14:34:32 +0800
committerMitch Curtis <[email protected]>2025-07-04 13:02:04 +0800
commitfa8bfd6ed5ec4150cd2b05cd17b199097193fb1b (patch)
treec7245941420d0ea7b3471658cc54e185ff982930 /src/quicktemplates/qquicktextfield.cpp
parent2e1337d87a60b8d1a30f5296bf3f614ec0bca383 (diff)
Fix heap-use-after-free in Container when using ListView transitionsHEADdev
Container's removeItem function removes and deletes items immediately. This has caused issues in the past, like QTBUG-46798. QTBUG-133256 is similar to that, except it also involves transitions. This patch fixes the crash by listening for the destruction of items created within an ObjectModel and removing them so that views don't have dangling pointers to them. Add removeAndDestroyObjectModelItem to tst_qquicklistview2, which is similar to the test added for 1e3924d8f585dd9099eb74ffbc17950c693d14da but adds more thorough checks and transitions. Fixes: QTBUG-133256 Task-number: QTBUG-46798 Pick-to: 6.5 6.8 6.9 6.10 Change-Id: I9777713edfc6f82a4e9edefe2fd6c9831f03c261 Reviewed-by: Shawn Rutledge <[email protected]> Reviewed-by: Richard Moe Gustavsen <[email protected]>
Diffstat (limited to 'src/quicktemplates/qquicktextfield.cpp')
0 files changed, 0 insertions, 0 deletions