Module: kamailio
Branch: master
Commit: 0eeb4cc61f4a340ef5f8d4acf1d4ea20eb711f73
URL:
https://github.com/kamailio/kamailio/commit/0eeb4cc61f4a340ef5f8d4acf1d4ea2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-07T09:15:35+02:00
uac: check new callid value for setting $uac_req() field
- GH #3135
---
Modified: src/modules/uac/uac_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0eeb4cc61f4a340ef5f8d4acf1d4ea2…
Patch:
https://github.com/kamailio/kamailio/commit/0eeb4cc61f4a340ef5f8d4acf1d4ea2…
---
diff --git a/src/modules/uac/uac_send.c b/src/modules/uac/uac_send.c
index be04464cae..7a43cdcc4d 100644
--- a/src/modules/uac/uac_send.c
+++ b/src/modules/uac/uac_send.c
@@ -424,6 +424,11 @@ int pv_set_uac_req(struct sip_msg* msg, pv_param_t *param,
LM_ERR("Invalid value type\n");
return -1;
}
+ if(tval->rs.len>=128)
+ {
+ LM_ERR("Value size too big\n");
+ return -1;
+ }
memcpy(_uac_req.s_callid.s, tval->rs.s, tval->rs.len);
_uac_req.s_callid.s[tval->rs.len] = '\0';
_uac_req.s_callid.len = tval->rs.len;