asterisk/pbx
Sean Bright 5a74abc53b pbx_spool: Gracefully handle long lines in call files
Per the linked issue, we aren't checking the buffer filled by fgets()
to determine if it contains a newline, so we will fail to correctly
parse the trailing portion of a long line.

This patch increases the buffer size from 256 to 1024, and skips any
line that exceeds that length, logging a warning in the process.

ASTERISK-17067 #close
Reported by: Dave Olszewski

Change-Id: I51bcf270c1b4347ba05b43f18dc2094c76f5d7b0
2017-03-06 15:29:52 -06:00
..
ael/ael-test Merged revisions 299449 via svnmerge from 2010-12-22 20:10:34 +00:00
Makefile Build System: Create Makefile macro MOD_ADD_SOURCE. 2015-04-14 12:53:03 -04:00
dundi-parser.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
dundi-parser.h Remove built-in AES code and use optional_api instead 2010-07-21 19:11:32 +00:00
pbx_ael.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
pbx_config.c core/pbx: dialplan show - display filename/line# 2017-01-04 14:06:20 -06:00
pbx_dundi.c pbx_dundi: DUNDi weight parameter not processed correctly 2017-02-21 17:10:34 -06:00
pbx_loopback.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
pbx_lua.c core/pbx: dialplan show - display filename/line# 2017-01-04 14:06:20 -06:00
pbx_realtime.c pbx_realtime: Prevent premature extension matching 2017-02-22 10:22:54 -06:00
pbx_spool.c pbx_spool: Gracefully handle long lines in call files 2017-03-06 15:29:52 -06:00