Commit Graph

1030 Commits

Author SHA1 Message Date
Bogdan Kolendovskyy 32df7e27fc feat: Add support for percent-encoding in password and it's corresponding test
Add support of percent-encoded characters when passing the username and password in URI

Closes https://github.com/espressif/esp-mqtt/issues/294
2026-04-23 16:05:24 +02:00
Euripedes Rocha f192911f6b Merge branch 'ignore_pydantic_warnings' into 'master'
MR: ci: Add missing pydantic warnings
See merge request espressif/esp-mqtt!301
2026-04-22 13:56:55 +02:00
Euripedes Rocha Filho 97b58eaded ci: Add missing pydantic warnings 2026-04-22 09:59:36 +02:00
Euripedes Rocha 723a74d350 Merge branch 'feature-test-log-component' into 'master'
MR: ci: Introduce log capture and matchers
See merge request espressif/esp-mqtt!297
2026-04-22 07:46:17 +02:00
Euripedes Rocha 19204c2409 Merge branch 'feat-release-please-config' into 'master'
MR: ci: Release Please configuration
See merge request espressif/esp-mqtt!298
2026-04-21 16:49:42 +02:00
Euripedes Rocha Filho e0a188b06b ci: Release Please configuration 2026-04-21 15:38:27 +02:00
Euripedes Rocha Filho 439c72786a ci: Introduce log capture and matchers
To allow our tests to use internal esp-mqtt state without exposing it
directly we add this utility to capture it.
2026-04-21 08:24:20 +02:00
Euripedes Rocha 3f62c75781 Merge branch 'feat/mqtt-conformance-infra' into 'master'
feat(mqtt): conformance test infrastructure (DUT app + CI)

See merge request espressif/esp-mqtt!281
2026-04-16 11:13:35 +02:00
Euripedes Rocha Filho 37a2e555c5 feat: add mqtt conformance test app
Adds a conformance test app based on paho test suite.
This introduce the basis infrastructure and initial tests.
2026-04-16 09:11:08 +02:00
Euripedes Rocha 0069d74433 Merge branch 'docs/mqtt_unstable_network_outbox_size' into 'master'
docs: Add advice regarding outbox message pile-up to the documentation

See merge request espressif/esp-mqtt!244
2026-04-15 09:23:39 +02:00
Bogdan Kolendovskyy ee9472f12f docs: Add advice regarding outbox message pile-up 2026-04-10 15:20:26 +02:00
Euripedes Rocha 2601f7695c Merge branch 'changecomponent' into 'master'
Modify component for github issues

See merge request espressif/esp-mqtt!226
2026-04-07 14:44:20 +02:00
Euripedes Rocha Filho 2f956726b4 ci: Modify component for github issues 2026-04-07 12:39:59 +02:00
Euripedes Rocha 689a2656a7 Merge branch 'fix/remaining-length-overflow' into 'master'
fix(mqtt_msg): fix signed integer overflow in remaining length decoding

See merge request espressif/esp-mqtt!276
2026-04-07 12:18:09 +02:00
Euripedes Rocha a607c9babc Merge branch 'update_sync-jira' into 'master'
ci: Update jira sync github action

See merge request espressif/esp-mqtt!288
2026-04-07 11:15:41 +02:00
Eun0us ffd44fb424 fix: fix signed integer overflow in remaining length decoding
The expression (buffer[i] & 0x7f) << (7 * (i - 1)) performs a left
shift on a signed int. When i >= 5, the shift amount reaches 28+ and
0x7f << 28 overflows INT_MAX, which is undefined behavior.

Per MQTT 3.1.1 section 2.2.3, the Remaining Length field uses at most
4 continuation bytes, so limit the decoding loop accordingly. Also
cast to size_t in mqtt_get_total_length() where totlen is already
size_t.

Affects mqtt_get_total_length() and mqtt_get_publish_data().

Found via coverage-guided fuzzing (libFuzzer + UBSan).
2026-04-07 11:02:39 +02:00
Euripedes Rocha Filho 570bbcfde4 ci: Update jira sync github action 2026-04-07 09:25:22 +02:00
Euripedes Rocha b4c1b9674a Merge branch 'release-definition' into 'master'
ci: Introduce release please for automated release

See merge request espressif/esp-mqtt!291
2026-04-02 15:24:42 +02:00
Euripedes Rocha Filho 9adb990ae1 ci: Introduce release please for automated release 2026-04-02 14:14:58 +02:00
Euripedes Rocha 7d07a6f79d Merge branch 'fix-idf-ci-artifacts' into 'master'
ci: Remove artifacts from build job template fo idf-ci 1.0.1

See merge request espressif/esp-mqtt!294
2026-04-02 14:14:14 +02:00
Euripedes Rocha Filho 8ed107b794 ci: Remove artifacts from build job template fo idf-ci 1.0.1
- Already included in the generate_test_child_pipeline
2026-04-01 19:26:04 +02:00
Euripedes Rocha 09749751cc Merge branch 'fix-idf-ci-native-artifacts' into 'master'
ci: Fix idf-ci artifacts path

See merge request espressif/esp-mqtt!292
2026-04-01 09:08:50 +02:00
Euripedes Rocha Filho 9ef975c54b ci: Fix idf-ci artifacts path 2026-03-31 15:52:26 +02:00
Euripedes Rocha 4cfd15f0a9 Merge branch 'docs-zh-cn' into 'master'
docs: re-enable zh_CN build

See merge request espressif/esp-mqtt!290
2026-03-27 14:24:29 +01:00
Euripedes Rocha Filho 42cce9f86f docs: re-enable zh_CN build 2026-03-27 07:59:42 +01:00
Euripedes Rocha 508319a31f Merge branch 'feat/remove_unnecessary_mocks_from_host_test' into 'master'
ci: Clear unneeded mocks from mqtt host test

See merge request espressif/esp-mqtt!289
2026-03-26 13:34:52 +01:00
Bogdan Kolendovskyy b4703c9c89 ci: Clear unneeded mocks from mqtt host test 2026-03-26 10:45:16 +01:00
Euripedes Rocha b2181a6e9a Merge branch 'fix_actions_permissions' into 'master'
ci: Fix gH actions permissions

See merge request espressif/esp-mqtt!286
2026-03-23 12:13:58 +01:00
Euripedes Rocha Filho 827da7ff23 ci: Fix gH actions permissions 2026-03-20 15:39:39 +01:00
Euripedes Rocha 6b0dd4991c Merge branch 'mqtt_update_build_images' into 'master'
ci: Add latest build image to 6.1

See merge request espressif/esp-mqtt!283
2026-03-06 06:46:06 +01:00
Octavio Godoy 4dd566c0ec ci: Add 6.1 as latest build image 2026-03-05 16:23:23 +01:00
Euripedes Rocha d4dac88fdd Merge branch 'ci-test-reports' into 'master'
Makes test reports available

See merge request espressif/esp-mqtt!280
2026-03-03 08:38:01 +01:00
Euripedes Rocha Filho 0a058845ed ci: add JUnit test reports to test pipeline job template
Makes xml reports available for parent.
2026-03-02 16:01:36 +01:00
Euripedes Rocha Filho d2343b11ee ci: ignore generated test_child_pipeline.yml
test_child_pipeline.yml is auto-generated
2026-03-02 10:10:20 +01:00
Euripedes Rocha d3ab324b42 Merge branch 'fix/esp32p4-tcp-partition' into 'master'
ci: Move P4 apps to use large partitionc

See merge request espressif/esp-mqtt!279
2026-02-27 13:34:55 +01:00
Euripedes Rocha Filho 72abeb4063 ci: Move P4 apps to use large partitionc
Avoid the warning and allow to build on IDF 5.5
2026-02-27 10:41:03 +01:00
Euripedes Rocha a5695b05f3 Merge branch 'fix/mqtt5_var_len_ub' into 'master'
fix(mqtt5): Fix UB in variable len processing

See merge request espressif/esp-mqtt!270
2026-02-24 13:32:42 +01:00
Euripedes Rocha 11f070c685 Merge branch 'feat/add_opaque_ds_driver_support' into 'master'
feat: adds support to use PSA opaque DS driver

See merge request espressif/esp-mqtt!274
2026-02-24 12:37:19 +01:00
Ashish Sharma aea4f3ef0d feat: adds support to use PSA opaque DS driver 2026-02-05 11:25:57 +08:00
Euripedes Rocha 4c0edaf09a Merge branch 'config_clarification' into 'master'
docs: Clarify defauls on configuation options

See merge request espressif/esp-mqtt!273
2026-02-04 08:27:03 +01:00
Euripedes Rocha 6f155005df Merge branch 'fix/mqtt5_property_disclose' into 'master'
fix(mqtt5): Sanitize property len/types to harden mqtt5-msg

See merge request espressif/esp-mqtt!272
2026-02-03 15:31:46 +01:00
David Cermak e427ebb7ea fix(mqtt5): Sanitize propery len/types to harden mqtt5-msg 2026-02-03 12:34:43 +01:00
Euripedes Rocha Filho dbc6fed4f6 docs: Clarify defauls on configuation options 2026-02-03 12:30:24 +01:00
Euripedes Rocha 7dd8f41615 Merge branch 'fix/build_failure_ssl_ds' into 'master'
Add nvs_flash dependency explicitly

See merge request espressif/esp-mqtt!271
2026-02-03 12:30:03 +01:00
harshal.patil d289d73fc6 fix(examples): Add nvs_flash dependency explicitly 2026-01-16 10:51:36 +05:30
David Cermak 3c5777d706 fix(mqtt5): Fix UB in variable len processing 2026-01-06 12:59:46 +01:00
Euripedes Rocha b6e8c65305 Merge branch 'feature/mqtt_provide_client_state' into 'master'
feat(mqtt): Add API to get MQTT client's status

Closes IDFGH-16071

See merge request espressif/esp-mqtt!251
2025-12-09 12:49:07 +01:00
Bogdan Kolendovskyy 77a875c804 feat: Add API to get MQTT client's status
Add a function which returns the status of MQTT client, either initialized,
connected, reconnecting, or disconnected.

Closes https://github.com/espressif/esp-mqtt/issues/307
2025-12-02 14:59:39 +01:00
Euripedes Rocha 55ee628c30 Merge branch 'removes_forward_slash_on_topics' into 'master'
fix: Removes forward / from topics in examples and test

Closes IDFGH-14696

See merge request espressif/esp-mqtt!264
2025-11-26 16:36:43 +01:00
Euripedes Rocha Filho 4c57d316c0 fix: Removes forward / from topics in examples and test
Cleans up examples to adhere to mqtt best practices
2025-11-26 14:31:54 +01:00