summaryrefslogtreecommitdiffstats
path: root/tests/manual/distancefieldtext-dynamic
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2025-06-26 14:08:06 +0200
committerDavid Faure <[email protected]>2025-06-26 14:21:01 +0200
commit4a302b4b9005b2cfc3a01ccfb67bab8002e4dc4d (patch)
tree9e9013574bcc0be48e75651c2d05ea51c9beadd2 /tests/manual/distancefieldtext-dynamic
parentbac06af12536f90472132b3aa4d65ad327653a0d (diff)
traverseChildren: fix crash due to range-for over children()HEADdev
If the user code adds a new child to that list, it can detach the list, and then the range-for is iterating over deleted memory. This code was initially using Q_FOREACH which did exactly this, the crash is a pitfall of the port to range-for Pick-to: 6.10 6.9 6.8 Change-Id: Ic5a1e099766d359c35a17eb4fdfd78a9d8152cc1 Reviewed-by: Paul Lemire <[email protected]>
Diffstat (limited to 'tests/manual/distancefieldtext-dynamic')
0 files changed, 0 insertions, 0 deletions