diff options
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch | 30 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/mdns/mdns_2200.60.25.0.4.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch new file mode 100644 index 0000000000..4b0227f1dc --- /dev/null +++ b/meta-networking/recipes-protocols/mdns/mdns/0001-Fix-SIGSEGV-during-DumpStateLog.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 14cc53bb09a3d8adf301f3842c765598467e63e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
3 | Date: Thu, 1 Feb 2024 14:07:03 +0000 | ||
4 | Subject: [PATCH] Fix SIGSEGV during DumpStateLog() | ||
5 | |||
6 | DumpStateLog() calls LogMsgWithLevelv() with category == NULL, avoid | ||
7 | crashing in this case. | ||
8 | |||
9 | Upstream-Status: Inactive-Upstream [Upstream does not take patches] | ||
10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
11 | --- | ||
12 | mDNSShared/mDNSDebug.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/mDNSShared/mDNSDebug.c b/mDNSShared/mDNSDebug.c | ||
16 | index 7a4ca19eff6d..d449dde320f6 100644 | ||
17 | --- a/mDNSShared/mDNSDebug.c | ||
18 | +++ b/mDNSShared/mDNSDebug.c | ||
19 | @@ -71,7 +71,7 @@ mDNSlocal void LogMsgWithLevelv(os_log_t category, os_log_type_t level, const ch | ||
20 | mDNSlocal void LogMsgWithLevelv(const char *category, mDNSLogLevel_t level, const char *format, va_list args) | ||
21 | { | ||
22 | // Do not print the logs if the log category is MDNS_LOG_CATEGORY_DISABLED. | ||
23 | - if (strcmp(category, MDNS_LOG_CATEGORY_DISABLED) == 0) | ||
24 | + if (category && strcmp(category, MDNS_LOG_CATEGORY_DISABLED) == 0) | ||
25 | { | ||
26 | return; | ||
27 | } | ||
28 | -- | ||
29 | 2.39.0 | ||
30 | |||
diff --git a/meta-networking/recipes-protocols/mdns/mdns_2200.60.25.0.4.bb b/meta-networking/recipes-protocols/mdns/mdns_2200.60.25.0.4.bb index a009ae0c6e..09af3d5ae3 100644 --- a/meta-networking/recipes-protocols/mdns/mdns_2200.60.25.0.4.bb +++ b/meta-networking/recipes-protocols/mdns/mdns_2200.60.25.0.4.bb | |||
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/apple-oss-distributions/mDNSResponder;protocol=https | |||
24 | file://mdns.service \ | 24 | file://mdns.service \ |
25 | file://0015-Add-missing-limits.h.patch \ | 25 | file://0015-Add-missing-limits.h.patch \ |
26 | file://0001-Handle-interface-without-ifa_addr.patch \ | 26 | file://0001-Handle-interface-without-ifa_addr.patch \ |
27 | file://0001-Fix-SIGSEGV-during-DumpStateLog.patch \ | ||
27 | " | 28 | " |
28 | SRCREV = "8acabead9ae56551011172d6835822a89c5298d6" | 29 | SRCREV = "8acabead9ae56551011172d6835822a89c5298d6" |
29 | 30 | ||