1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Go to file
Tatiana Borisova 011eb1e424 Fix topic alias bounds and storage sizes
- In the f8ecf4d56a we found that the
m_receiveAliases bounds check used a wrong property:
m_clientPrivate->m_serverConnectionProperties.maximumTopicAlias(),
but it must use instead:
m_clientPrivate->m_connectionProperties.maximumTopicAlias().

So, the idea is m_receiveAliases is sized according to the maximum
topic alias value declared by the client in CONNECT, while
m_publishAliases is sized according to the maximum value declared
by the server in CONNACK.

The previous fix did not update all related code.
1) The resize() calls for m_receiveAliases and m_publishAliases
still used the wrong properties.
2) The bounds check for m_publishAliases still used the client's
maximumTopicAlias() value instead of the server's.

- Update the resize() calls to use the appropriate connection
properties and fix the bounds check for m_publishAliases.

Amends f8ecf4d56a

Pick-to: 6.11 6.12 6.8
Task-number: QTBUG-149564
Change-Id: I252c67966bf28c6994f34b19024d1b7894748473
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2026-08-28 17:36:29 +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 Fix topic alias bounds and storage sizes 2026-08-28 17:36:29 +00:00
tests Tst_QMqttSubscription: fix -Wunused-lambda-capture 2026-03-24 08:50:18 +01: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-08-28 16:01:26 +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