[asterisk-commits] mjordan: branch 1.8 r379608 - /branches/1.8/apps/app_minivm.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jan 20 22:05:34 CST 2013


Author: mjordan
Date: Sun Jan 20 22:05:29 2013
New Revision: 379608

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379608
Log:
Fix crash in app_minivm when mime encoding string

An incorrect string initializations was left in ast_str_encode_mime from the
patch that converted string manipulations to use ast_str strings (r191140).
The string initialization causes a crash when ast_str_set is called on
the string later on in the function.

(closes issue ASTERISK-18967)
Reported by: Chris Boot
patches:
  minivm-null-pointer-dereference-fix.patch uploaded by bootc (license 6309)

(issue ASTERISK-20854)
Reported by: Chris Warr
Tested by: Chris Warr


Modified:
    branches/1.8/apps/app_minivm.c

Modified: branches/1.8/apps/app_minivm.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_minivm.c?view=diff&rev=379608&r1=379607&r2=379608
==============================================================================
--- branches/1.8/apps/app_minivm.c (original)
+++ branches/1.8/apps/app_minivm.c Sun Jan 20 22:05:29 2013
@@ -1159,7 +1159,6 @@
 {
 	struct ast_str *tmp = ast_str_alloca(80);
 	int first_section = 1;
-	*end = '\0';
 
 	ast_str_reset(*end);
 	ast_str_set(&tmp, -1, "=?%s?Q?", charset);




More information about the asterisk-commits mailing list