[svn-commits] mjordan: trunk r399682 - in /trunk: ./ apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Sep 24 13:59:07 CDT 2013


Author: mjordan
Date: Tue Sep 24 13:59:05 2013
New Revision: 399682

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399682
Log:
app_queue: Initialize array holding MixMonitor exec options

If the channel variable MONITOR_EXEC is set, app_queue will pass the specified
execution parameters to the MixMonitor application when a queue is recorded.
If that channel variable is not set, the buffer that holds the escaped value
was not being initialized to NULL, and so would be passed to the MixMonitor
application with garbage. Hilarity ensued as app_mixmonitor attempted to
execute gobeldy-gook.
........

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

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=399682&r1=399681&r2=399682
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Sep 24 13:59:05 2013
@@ -5910,7 +5910,7 @@
 	char escaped_filename[256];
 	char file_with_ext[256];
 	char mixmonargs[1512];
-	char escaped_monitor_exec[1024];
+	char escaped_monitor_exec[1024] = "\0";
 	const char *monitor_options;
 	const char *monitor_exec;
 




More information about the svn-commits mailing list