asterisk/channels
George Joseph 949e9147bf AST-2017-004: chan_skinny: Add EOF check in skinny_session
The while(1) loop in skinny_session wasn't checking for EOF so
a packet that was longer than a header but still truncated
would spin the while loop infinitely.  Not only does this
permanently tie up a thread and drive a core to 100% utilization,
the call of ast_log() in such a tight loop eats all available
process memory.

Added poll with timeout to top of read loop

ASTERISK-26940 #close
Reported-by: Sandro Gauci

Change-Id: I2ce65f3c5cb24b4943a9f75b64d545a1e2cd2898
2017-05-19 11:19:09 -05:00
..
dahdi Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
iax2 Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
misdn Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
pjsip chan_pjsip: Don't assume a session will have a channel. 2017-03-13 12:37:55 -06:00
sip chan_sip: Add rtcp-mux support 2017-03-17 07:36:06 -06:00
Makefile Makefile: Remove coverage files on 'make clean' 2015-07-04 07:47:06 -05:00
chan_alsa.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_bridge_media.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_console.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_dahdi.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_dahdi.h chan_dahdi: Add faxdetect_timeout option. 2016-07-19 10:33:45 -05:00
chan_iax2.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_mgcp.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_misdn.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
chan_motif.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_nbs.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_oss.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_phone.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06: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 res_pjsip_session: Add cleanup to ast_sip_session_terminate 2017-04-27 10:43:32 -05:00
chan_rtp.c chan_rtp.c: Fix uninitialized memory crash. 2016-12-22 12:25:15 -06:00
chan_sip.c chan_sip: Change sip_get_codec() to return correct codec list 2017-05-12 04:33:12 -05:00
chan_skinny.c AST-2017-004: chan_skinny: Add EOF check in skinny_session 2017-05-19 11:19:09 -05:00
chan_unistim.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
chan_vpb.cc chan_vpb.cc: Fix compile error. 2017-04-27 19:08:05 -05:00
console_board.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
misdn_config.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
sig_analog.c build_system: Fix some warnings highlighted by clang 2016-02-01 19:22:40 -06:00
sig_analog.h chan_dahdi/sig_analog: Fix distinctive ring detection to suck less. 2015-03-06 20:24:58 +00:00
sig_pri.c build: GCC 5.1.x catches some new const, array bounds and missing paren issues 2015-10-24 16:08:54 -05:00
sig_pri.h sig_pri.h: force_restart_unavailable_chans in wrong scope 2015-07-17 11:02:24 -05:00
sig_ss7.c Logger: Convert 'struct ast_callid' to unsigned int. 2015-03-13 01:12:35 +00:00
sig_ss7.h chan_dahdi: Adds support for major update to libss7. 2014-06-16 18:27:51 +00:00
vcodecs.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
vgrabbers.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00