]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2013-005: Fix crash caused by invalid SDP
authorMatthew Jordan <mjordan@digium.com>
Tue, 27 Aug 2013 17:57:03 +0000 (17:57 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 27 Aug 2013 17:57:03 +0000 (17:57 +0000)
commit685d8207c427419485e24bf48fe161dfcd3304ed
tree38df38d0ec87879e4289798dc91d983061b79b33
parentec76cd73f11f9e3e0f478b16033af10733753505
AST-2013-005: Fix crash caused by invalid SDP

If the SIP channel driver processes an invalid SDP that defines media
descriptions before connection information, it may attempt to reference
the socket address information even though that information has not yet
been set. This will cause a crash.

This patch adds checks when handling the various media descriptions that
ensures the media descriptions are handled only if we have connection
information suitable for that media.

Thanks to Walter Doekes, OSSO B.V., for reporting, testing, and providing
the solution to this problem.

(closes issue ASTERISK-22007)
Reported by: wdoekes
Tested by: wdoekes
patches:
  issueA22007_sdp_without_c_death.patch uploaded by wdoekes (License 5674)
........

Merged revisions 397756 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@397757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c