Alexei Gradinari
bc320df173
app_voicemail/IMAP: IMAP access FATAL error: Out of memory
...
Sometimes uw-imap function 'mail_fetchbody' returns huge len
which then pass to uw-imap function 'rfc822_base64'.
uw-imap tries to allocate huge memory and abort() on fail.
This patch check the len.
If the len more than max size (128 Mbytes) log error.
This patch also set variables len, newlen to avoid uninizialezed len.
This patch also check pointer returned by rfc822_base64.
ASTERISK-25899 #close
Change-Id: I4a0e7d655f11abef6a5224e2169df6d5c1f1caca
2016-04-07 17:10:30 -05:00
..
2016-02-05 12:01:28 -06:00
2014-12-17 09:54:00 +00:00
2015-01-30 17:44:54 +00:00
2015-01-23 15:03:05 +00:00
2015-12-21 16:03:42 -08:00
2013-06-17 03:00:38 +00:00
2014-07-25 10:54:49 +00:00
2014-01-12 22:13:12 +00:00
2014-07-25 16:47:17 +00:00
2015-11-06 16:46:21 -05:00
2013-05-21 18:00:22 +00:00
2016-03-11 23:03:08 +01:00
2016-02-05 12:01:28 -06:00
2013-01-22 15:16:20 +00:00
2014-07-25 16:47:17 +00:00
2013-02-14 03:49:52 +00:00
2016-01-04 13:33:37 -06:00
2015-07-15 10:34:21 -05:00
2013-11-22 16:43:21 +00:00
2015-06-11 14:39:45 -05:00
2013-12-19 00:50:01 +00:00
2015-11-09 17:02:52 +01:00
2016-03-29 11:20:17 +02:00
2011-07-14 20:28:54 +00:00
2015-03-17 21:49:30 +00:00
2016-02-01 18:20:05 -07:00
2014-07-25 16:47:17 +00:00
2012-03-01 22:09:18 +00:00
2015-04-17 15:57:10 -05:00
2014-08-06 12:55:28 +00:00
2014-12-17 09:54:00 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2015-01-13 18:16:32 +00:00
2016-02-01 18:20:05 -07:00
2014-07-20 22:06:33 +00:00
2016-02-01 18:20:05 -07:00
2016-03-11 23:03:08 +01:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2014-07-20 22:06:33 +00:00
2014-12-17 09:54:00 +00:00
2015-11-06 16:46:21 -05:00
2015-05-20 18:05:20 -06:00
2012-02-20 23:43:27 +00:00
2012-02-29 16:52:47 +00:00
2016-02-17 15:04:16 -06:00
2012-02-20 23:43:27 +00:00
2012-02-29 16:52:47 +00:00
2015-09-21 18:06:15 -05:00
2014-07-25 16:47:17 +00:00
2013-11-14 20:32:45 +00:00
2012-09-28 18:27:02 +00:00
2012-02-20 23:43:27 +00:00
2014-07-25 16:47:17 +00:00
2016-03-24 13:14:33 -03:00
2014-12-17 09:54:00 +00:00
2012-02-20 23:43:27 +00:00
2014-07-28 18:58:43 +00:00
2014-09-05 22:03:45 +00:00
2016-03-16 11:17:54 -05:00
2012-06-15 16:20:16 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2014-01-17 17:16:14 +00:00
2014-07-25 16:47:17 +00:00
2014-05-22 16:09:51 +00:00
2014-05-09 22:49:26 +00:00
2016-04-07 17:10:30 -05:00
2012-06-15 15:33:41 +00:00
2014-07-25 16:47:17 +00:00
2014-07-25 16:47:17 +00:00
2011-07-14 20:28:54 +00:00
2012-07-31 20:21:43 +00:00
2014-07-25 16:47:17 +00:00
2015-07-04 07:29:53 -05:00