Function pjsip_rx_data_clone has invalid dst->msg_info.msg_buf pointer.
It points to dst->pkt_info.packet and ignores offset of src->msg_info.msg_buf from src->pkt_info.packet.
Some modules (for example pjsua_lib) is using this method to notify account with incoming call and end-user application can see only part of invite in the end of message and some stuff in the beginning.
I think, that validation of
src->msg_info.msg_buf (that it points to
dst->pkt_info.packet)
is not required
because msg_buf assignment is doing only in pjsip_tpmgr_receive_packet and in
pjsip_rx_data_clone.
Patch in attachement.
--
Best regards,
Andrew A. Chernyh
Andrew A. Chernyh
Attachment:
patch.diff
Description: Binary data
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org