# HG changeset patch # User Mychaela Falconia # Date 1664435266 28800 # Node ID c93c339271a721cf79194fc4d87ff6476fdbe104 # Parent 3a1f0e13a3ac26d124d78b3b04c9df0ef33dfe0f sip-in CDR syslog: put a safety limit on string length diff -r 3a1f0e13a3ac -r c93c339271a7 sip-in/invite.c --- a/sip-in/invite.c Wed Sep 28 23:05:38 2022 -0800 +++ b/sip-in/invite.c Wed Sep 28 23:07:46 2022 -0800 @@ -263,7 +263,7 @@ if (rc < 0) { gsm_offline: syslog(LOG_INFO, "Down-call from %s to %s", cdr_str, uri_user); if (hval) - syslog(LOG_INFO, "Down-call PAI: %s", hval); + syslog(LOG_INFO, "Down-call PAI: %.100s", hval); start_response_out_msg(&resp, "480 GSM service is offline"); goto error_resp; } @@ -335,7 +335,8 @@ syslog(LOG_INFO, "Call in%06u from %s to %s", call->in_tag_num, cdr_str, uri_user); if (hval) - syslog(LOG_INFO, "Call in%06u PAI: %s", call->in_tag_num, hval); + syslog(LOG_INFO, "Call in%06u PAI: %.100s", call->in_tag_num, + hval); /* send CRCX to TMGW */ tmgw_send_crcx(call); call->overall_state = OVERALL_STATE_CRCX;