summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qsharedpointer.cpp
diff options
context:
space:
mode:
authorAndrew Smolko <andrewsmolko@gmail.com>2018-11-08 18:18:55 +0300
committerAndrew Smolko <andrewsmolko@gmail.com>2018-11-22 14:02:03 +0000
commit755521aba6d63fc572b5b3ee43193ea24a2d5513 (patch)
tree57904474ecdb2c1267c995e7290beb7bc3fbdec0 /src/corelib/tools/qsharedpointer.cpp
parent46076f73337d6b0fea9a006dab2af8864571ae2c (diff)
Fix hang in QMacPasteboard::formats()
PasteboardGetItemCount() can return -1 as result to unsigned variable, so the further loop will iterate "forever". Return early to avoid hang. Change-Id: Ie91dba1c193d04513f0496d20bd0b6b0b5b6c151 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/tools/qsharedpointer.cpp')
0 files changed, 0 insertions, 0 deletions