]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_transport_websocket: Fix crash on receiving large SIP packets 29/529/1
authorIvan Poddubny <ivan.poddubny@gmail.com>
Sat, 23 May 2015 09:36:18 +0000 (12:36 +0300)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Sat, 23 May 2015 10:18:53 +0000 (05:18 -0500)
commit554bd1e39c704a20226c1f8573fe30a327e9ae98
treed6bbd44f7ae5fcc0becbf4907cd7dc671dcd80d1
parenteaabc4d04c9c4ebca1a4d04b5e9e6a36cc0b764b
res_pjsip_transport_websocket: Fix crash on receiving large SIP packets

Incoming SIP packets larger than PJSIP_MAX_PKT_LEN were themselves
truncated before passing to pjsip_tpmgr_receive_packet, but the length
was passed unaltered, thus causing memory corruption and segfault.

ASTERISK-25122 #close

Change-Id: I608a6b6b7f229eacc33a0a7d771d18e27e5b08ab
res/res_pjsip_transport_websocket.c