diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-01-21 04:17:28 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-01-21 04:17:28 +0000 |
commit | d4bdec74e49eda20f5cf55d6da61341e50a52c89 (patch) | |
tree | 7d229f0b83590dfbbf35bb3e50ac8804d30d53fa /apps/app_minivm.c | |
parent | 50fa41ab8b2de8c65b6cb7fe1a68d9658dfd95bc (diff) |
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-18697)
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
........
Merged revisions 379608 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 379609 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@379612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r-- | apps/app_minivm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c index e37346f16..498c6ea2f 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -1158,7 +1158,6 @@ static const char *ast_str_encode_mime(struct ast_str **end, ssize_t maxlen, con { 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); |