From 8af2c2537688d72f99f851b82c7d1b4324500cd5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 20 Nov 2024 07:58:39 -0400 Subject: [PATCH] MT#55283 fix wrong string length being used These strings are not null terminated. Use the correct string length. Change-Id: I15d7541af0d9cc09401180a7d45edbec9b915aa2 (cherry picked from commit 0a1d6587661cb608ac1b3e5158f825a0545a0387) (cherry picked from commit 3bfeee5581d5661b470b33b9a233690068e5b96f) --- daemon/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index c2456cb89..a673b41db 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -370,7 +370,7 @@ static void sdp_manipulations_add(GString *s, struct sdp_manipulations * sdp_man { str * attr_value = l->data; g_string_append_len(s, "a=", 2); - g_string_append_len(s, attr_value->s, strlen(attr_value->s)); + g_string_append_len(s, attr_value->s, attr_value->len); g_string_append_len(s, "\r\n", 2); } }