1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Go to file
Tatiana Borisova 21b866609f The Qt app can freeze forever if the broker sends a bad message
- When QMqttConnection reads a message, it keeps a count of the bytes
left to read -> by the dataSize argument. If a read fails, the count
is never reduced.
- The fix cleaning up the count of the bytes left to read, since
the reading is not working anymore and parsing should be stopped.
It allows to get read of potential freezes.

The patch also updates the QByteArray specialization to return a
default-constructed QBA in case of an error. This is more in line
with the default implementation.

Pick-to: 6.11 6.12 6.8
Task-number: QTBUG-149563
Change-Id: I8c8c5ef354103a996ac6e360fbc5c8f61d965f3d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2026-09-15 09:06:31 +00:00
coin Update to coin_module_test_template_v3.yaml 2026-08-17 09:51:21 +00:00
dist Remove year from Qt Copyright in REUSE.toml 2025-07-09 11:01:49 +02:00
examples Doc: Add alt text for \image tags for qtmqtt 2026-03-11 14:32:53 +01:00
LICENSES Add REUSE.toml files and missing licenses 2024-11-14 12:24:58 +00:00
src The Qt app can freeze forever if the broker sends a bad message 2026-09-15 09:06:31 +00:00
tests Read the Remaining Length as a variable byte integer everywhere 2026-09-01 17:40:37 +00:00
.cmake.conf Bump version to 6.13.0 2026-06-04 21:59:51 +00:00
.gitattributes Initial commit 2017-01-19 10:27:05 +01:00
.gitignore Add CMakeUserPresets.json to .gitignore 2024-11-28 18:02:47 +01:00
.gitreview Add .gitreview file 2025-03-24 15:22:02 +01:00
.tag Initial commit 2017-01-19 10:27:05 +01:00
CMakeLists.txt Move qt_internal_project_setup as early as possible 2025-06-20 15:33:39 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00
dependencies.yaml Update dependencies on 'dev' in qt/qtmqtt 2026-09-14 22:30:33 +00:00
licenseRule.json Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00
REUSE.toml Add CONTRIBUTING.md file 2026-04-21 07:22:04 +00:00