1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
qtmqtt/tests/auto
Maurice Kalinowski 5277f58a2a Fix potential race condition for receiving messages
When iterating through the list of active subscriptions to emit the
messageReceived signal, the handler can add further subscriptions, which
renders the iterator to be invalid. Instead store the subscriptions in a
list, which are supposed to receive the signal and only act upon these.

Fixes: QTBUG-106203
Pick-to: 6.4 6.2 5.15
Change-Id: I790a6081c332e82da8e53b15df8ad8494f35cc46
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2022-10-19 06:41:12 +02:00
..
cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
conformance Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
qmqttclient Port from container::count() and length() to size() 2022-10-10 20:28:18 +02:00
qmqttconnectionproperties Port from container::count() and length() to size() 2022-10-10 20:28:18 +02:00
qmqttcontrolpacket Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
qmqttlastwillproperties Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
qmqttpublishproperties Port from container::count() and length() to size() 2022-10-10 20:28:18 +02:00
qmqttsubscription Fix potential race condition for receiving messages 2022-10-19 06:41:12 +02:00
qmqttsubscriptionproperties Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
qmqtttopicfilter Fix wildcard filter matching 2022-09-29 08:34:31 +02:00
qmqtttopicname Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 10:00:53 +02:00