Skip to content

Commit a3c2bbe

Browse files
authored
Merge pull request #748 from david-cermak/fix/mdns_coverity
[mdns]: Bump v1.5.2
2 parents 2e7d240 + 84c47c3 commit a3c2bbe

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

components/mdns/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(mdns): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py mdns
55
tag_format: mdns-v$version
6-
version: 1.5.1
6+
version: 1.5.2
77
version_files:
88
- idf_component.yml

components/mdns/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.5.2](https://github.com/espressif/esp-protocols/commits/mdns-v1.5.2)
4+
5+
### Bug Fixes
6+
7+
- Fix potential NULL deref when sending sub-buy ([e7273c46](https://github.com/espressif/esp-protocols/commit/e7273c46))
8+
- Fix _mdns_append_fqdn excessive stack usage ([bd23c233](https://github.com/espressif/esp-protocols/commit/bd23c233))
9+
310
## [1.5.1](https://github.com/espressif/esp-protocols/commits/mdns-v1.5.1)
411

512
### Bug Fixes

components/mdns/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.5.1"
1+
version: "1.5.2"
22
description: "Multicast UDP service used to provide local network service and host discovery."
33
url: "https://github.com/espressif/esp-protocols/tree/master/components/mdns"
44
issues: "https://github.com/espressif/esp-protocols/issues"

components/mdns/mdns.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,9 @@ static void _mdns_send_bye_subtype(mdns_srv_item_t *service, const char *instanc
23992399
for (j = 0; j < MDNS_IP_PROTOCOL_MAX; j++) {
24002400
if (mdns_is_netif_ready(i, j)) {
24012401
mdns_tx_packet_t *packet = _mdns_alloc_packet_default((mdns_if_t)i, (mdns_ip_protocol_t)j);
2402+
if (packet == NULL) {
2403+
return;
2404+
}
24022405
packet->flags = MDNS_FLAGS_QR_AUTHORITATIVE;
24032406
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_PTR, service->service, NULL, true, true)) {
24042407
_mdns_free_tx_packet(packet);

0 commit comments

Comments
 (0)