Browse Source

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 0a1d658766)
(cherry picked from commit 61c6c94a0d)
mr12.5.1
Richard Fuchs 1 year ago
parent
commit
95f6cde45d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      daemon/sdp.c

+ 2
- 1
daemon/sdp.c View File

@ -301,6 +301,7 @@ const str rtpe_instance_id = STR_CONST_INIT(__id_buf);
static void attr_free(struct sdp_attribute *p);
static void attr_insert(struct sdp_attributes *attrs, struct sdp_attribute *attr);
INLINE void chopper_append_c(struct sdp_chopper *c, const char *s);
INLINE void chopper_append_str(struct sdp_chopper *c, const str *s);
/**
* Checks whether an attribute removal request exists for a given session level.
@ -366,7 +367,7 @@ static void sdp_manipulations_add(struct sdp_chopper *chop,
str * attr_value = l->data;
chopper_append_c(chop, "a=");
chopper_append_c(chop, attr_value->s);
chopper_append_str(chop, attr_value);
chopper_append_c(chop, "\r\n");
}
}


Loading…
Cancel
Save