Module: kamailio Branch: 6.0 Commit: aec01495a7e24c096d1a0a8fd92a8426a2d1a8b7 URL: https://github.com/kamailio/kamailio/commit/aec01495a7e24c096d1a0a8fd92a8426a2d1a8b7
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-04T08:05:06+01:00 core: parser/sdp - copy data after structure when cloning ice attr and opt (cherry picked from commit 37c78454408043e5d285cbc82681f9e2cc634cf5) --- Modified: src/core/parser/sdp/sdp.c --- Diff: https://github.com/kamailio/kamailio/commit/aec01495a7e24c096d1a0a8fd92a8426a2d1a8b7.diff Patch: https://github.com/kamailio/kamailio/commit/aec01495a7e24c096d1a0a8fd92a8426a2d1a8b7.patch --- diff --git a/src/core/parser/sdp/sdp.c b/src/core/parser/sdp/sdp.c index 5eb04b0c047..84a927d4723 100644 --- a/src/core/parser/sdp/sdp.c +++ b/src/core/parser/sdp/sdp.c @@ -1233,7 +1233,7 @@ sdp_ice_attr_t *clone_sdp_ice_attr(sdp_ice_attr_t *ice_attr) } memset(clone_ice_attr, 0, len); - p = (char *)(clone_ice_attr); /* beginning of the struct */ + p = (char *)(clone_ice_attr + 1); /* foundation */ if(ice_attr->foundation.len) { @@ -1301,7 +1301,7 @@ sdp_ice_opt_t *clone_sdp_opt_attr(sdp_ice_opt_t *ice_opt) return NULL; } memset(clone_ice_opt, 0, len); - p = (char *)(clone_ice_opt); /* beginning of the struct */ + p = (char *)(clone_ice_opt + 1); /* ice option */ if(ice_opt->option.len) { _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
