From 0a1d6587661cb608ac1b3e5158f825a0545a0387 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 --- daemon/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 6ac71d5e7..18e471f2d 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -368,7 +368,7 @@ static void sdp_manipulations_add(GString *s, const struct sdp_manipulations * s { 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); } }