asterisk/channels
Matthew Jordan c32f8a5ca9 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
........

Merged revisions 397757 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 397758 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 397759 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-08-27 18:10:40 +00:00
..
dahdi A great big renaming patch 2013-07-25 04:06:32 +00:00
h323 Asterisk media architecture conversion - no more format bitfields 2011-02-03 16:22:10 +00:00
iax2 Add additional control frame types to the IAX2 parser for debug messages 2013-07-21 02:30:58 +00:00
misdn Allow mISDN to send PROGRESS messsage. 2013-05-10 22:12:52 +00:00
sip Fix refcounting of sip_pvt in test_sip_rtpqos test and unlink it from the list of pvts. 2013-08-20 16:25:33 +00:00
chan_alsa.c Don't attempt to create a voice frame on a read error 2013-04-14 02:35:04 +00:00
chan_bridge_media.c Hide the Surrogate channels from external consumers; kill Masquerade events 2013-08-08 14:13:05 +00:00
chan_console.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_dahdi.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
chan_dahdi.h Some chan_dahdi protected function renaming. 2013-07-23 16:26:36 +00:00
chan_gtalk.c Remove dead code from features.c; refactor pickup code into pickup.c 2013-08-02 02:32:44 +00:00
chan_h323.c Refactor RTCP events over to Stasis; associate with channels 2013-07-05 17:33:33 +00:00
chan_iax2.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
chan_jingle.c Refactor RTCP events over to Stasis; associate with channels 2013-07-05 17:33:33 +00:00
chan_mgcp.c Update chan_mgcp to the modified parking API 2013-08-18 03:05:23 +00:00
chan_misdn.c chan_misdn: Effectively remove native support. Left enough bread crumbs to be able to convert later if needed. 2013-08-14 22:53:27 +00:00
chan_motif.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
chan_multicast_rtp.c Refactor RTCP events over to Stasis; associate with channels 2013-07-05 17:33:33 +00:00
chan_nbs.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
chan_oss.c Get rid of ast_bridged_channel() and the bridged_channel field on ast_channels. 2013-08-02 14:05:07 +00:00
chan_phone.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_pjsip.c Add pass through support for Opus and VP8; Opus format attribute negotiation 2013-08-23 15:42:27 +00:00
chan_sip.c AST-2013-005: Fix crash caused by invalid SDP 2013-08-27 18:10:40 +00:00
chan_skinny.c Allow res_parking to be unloadable 2013-08-17 15:01:54 +00:00
chan_unistim.c Strip down the old event system 2013-08-17 14:39:27 +00:00
chan_vpb.cc Remove some dead code dealing with: AST_BRIDGE_REC_CHANNEL_0, AST_BRIDGE_REC_CHANNEL_1, and AST_BRIDGE_IGNORE_SIGS. 2013-08-15 15:12:16 +00:00
console_board.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
Makefile chan_dahdi: Add some missing build cleanup. 2013-08-26 16:15:02 +00:00
misdn_config.c Add named callgroups/pickupgroups 2012-08-07 12:46:36 +00:00
sig_analog.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
sig_analog.h Convert sig_analog to use a global callback table. 2012-08-08 20:32:53 +00:00
sig_pri.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
sig_pri.h Strip down the old event system 2013-08-17 14:39:27 +00:00
sig_ss7.c Fix uninitialized value in struct ast_control_pvt_cause_code usage. 2013-08-27 16:51:08 +00:00
sig_ss7.h Convert sig_ss7 to use a global callback table. 2012-08-08 00:15:54 +00:00
vcodecs.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
vgrabbers.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00