[svn-commits] russell: trunk r82660 - in /trunk: ./ apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Sep 17 15:10:11 CDT 2007


Author: russell
Date: Mon Sep 17 15:10:10 2007
New Revision: 82660

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82660
Log:
Merged revisions 82644 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82644 | russell | 2007-09-17 15:00:32 -0500 (Mon, 17 Sep 2007) | 6 lines

Initialize some memory to fix crashes when leaving voicemail.  This problem
was fixed by running Asterisk under valgrind.
(closes issue #10746, reported by arcivanov, patched by me)

*** IMPORTANT NOTE:  We need to check to see if this same bug exists elsewhere.

........

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

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

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=82660&r1=82659&r2=82660
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Mon Sep 17 15:10:10 2007
@@ -1958,6 +1958,8 @@
 #endif
 
 	gethostname(host, sizeof(host)-1);
+	memset(&tm, 0, sizeof(tm));
+
 	if (strchr(srcemail, '@'))
 		ast_copy_string(who, srcemail, sizeof(who));
 	else 
@@ -2235,7 +2237,10 @@
 {
 	struct ast_tm tm;
 	struct timeval t = ast_tvnow();
+	
+	memset(&tm, 0, sizeof(tm));
 	ast_localtime(&t, &tm, NULL);
+
 	return ast_strftime(s, len, "%a %b %e %r %Z %Y", &tm);
 }
 




More information about the svn-commits mailing list