There is the potential to copy uninitialized memory into the mixmonitor->post_process
string. This fix prevents that. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89207 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
5dfa041c88
commit
fdc273032a
|
@ -220,7 +220,7 @@ static void launch_monitor_thread(struct ast_channel *chan, const char *filename
|
|||
{
|
||||
pthread_t thread;
|
||||
struct mixmonitor *mixmonitor;
|
||||
char postprocess2[1024];
|
||||
char postprocess2[1024] = "";
|
||||
size_t len;
|
||||
|
||||
len = sizeof(*mixmonitor) + strlen(chan->name) + strlen(filename) + 2;
|
||||
|
|
Reference in New Issue