summaryrefslogtreecommitdiffstats
path: root/bin/qt-cmake-create.in
diff options
context:
space:
mode:
authorTobias Fella <[email protected]>2025-04-08 13:39:37 +0200
committerDavid Faure <[email protected]>2025-07-01 11:59:52 +0000
commita43b6dfd5eadbdcf46451a120bd2994a5f5bacc3 (patch)
tree36ff6806dd305fc8c96a9240247e9e47e06c3fd2 /bin/qt-cmake-create.in
parenteb98bb80162cdf3656c9839bae5ee126f4ff00a8 (diff)
QFileInfoGatherer: Prevent infinite loop
If the path to be added to the queue already exists at position 0 of the queue, loc is set to 0. This causes the next invocation of lastIndexOf to start at index -1 (the end of the queue). It will then again find the path at index 0. This means that the loop will never terminate, causing the application to freeze here. This patch fixes that by breaking out of the loop if loc is 0. Pick-to: 6.10 6.9 Change-Id: Ib84f0b2766aa39c87f66b94a2e3fbc6ede687521 Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'bin/qt-cmake-create.in')
0 files changed, 0 insertions, 0 deletions