Summary:ASTERISK-25899: IMAP access FATAL error: Out of memory
Reporter:Alexei Gradinari (alexei gradinari)Labels:
Date Opened:2016-04-07 11:35:34Date Closed:2016-09-23 14:16:48
Versions:13.8.0 Frequency of
Environment:Slackware 14.1 x86_64 uw-imap-2007fAttachments:
Description:Sometimes uw-imap function 'mail_fetchbody' returns huge len.
I don't known if it's bug in uw-imap or on imap server, but
app_voicemail doesn't check this len and calls uw-imap function 'rfc822_base64' with this len.
uw-imap tries to allocate huge memory and abort() on fail.

To avoid it's necessary to check len on reasonable max value.

Comments:By: Asterisk Team (asteriskteam) 2016-04-07 11:35:34.635-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].