[asterisk-bugs] [Asterisk 0018501]: minivm: when sending mail and using volgain

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 20 11:49:51 UTC 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18501 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18501
Category:                   Applications/app_minivm
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 299001 
Request Review:              
====================================================================== 
Date Submitted:             2010-12-20 05:49 CST
Last Modified:              2010-12-20 05:49 CST
====================================================================== 
Summary:                    minivm: when sending mail and using volgain
Description: 
There's some questionable code in apps/app_minivm.c:sendmail() at around
line 1270 looks odd:

1. tmpfd is opened, but never closed.
2. finalfilename is points to part of the stack that gets de-allocated
soon.

Not sure if it causes a crash, as I ran into a different crash issue on
the same area. A demo patch is attached anyway.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-20 05:49 tzafrir        New Issue                                    
2010-12-20 05:49 tzafrir        Asterisk Version          => SVN             
2010-12-20 05:49 tzafrir        Regression                => No              
2010-12-20 05:49 tzafrir        SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2010-12-20 05:49 tzafrir        SVN Revision (number only!) => 299001          
======================================================================




More information about the asterisk-bugs mailing list