mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix corruptin in app_cut (bug #1084)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -85,6 +85,8 @@ static int cut_exec(struct ast_channel *chan, void *data)
|
||||
char *tmp2 = alloca(MAXRESULT);
|
||||
char retstring[MAXRESULT];
|
||||
|
||||
if (tmp2)
|
||||
memset(tmp2, 0, MAXRESULT);
|
||||
memset(retstring, 0, MAXRESULT);
|
||||
|
||||
if (tmp && tmp2) {
|
||||
|
Reference in New Issue
Block a user