asterisk/apps
Matthew Jordan 5e40f2cd98 Fix crash in app_voicemail during close_mailbox
In r354890, a memory leak in app_voicemail was fixed by properly disposing of
the allocated heard/deleted pointers.  However, there are situations,
particularly when no messages are found in a folder, where these pointers are
not allocated and not NULL.  In that case, an invalid free would be attempted,
which could crash app_voicemail.  As there are a number of code paths where
this could occur, this patch uses the number of messages detected in the folder
before it attempts to free the pointers.  This resolves the crash detected in
the Asterisk Test Suite's check_voicemail_nominal test.
........

Merged revisions 356797 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 356798 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-02-25 17:22:55 +00:00
..
confbridge Fix for ConfBridge config parser unlocking channel mutex too many times 2012-01-04 22:23:28 +00:00
app_adsiprog.c Replace direct access to channel name with accessor functions 2012-01-09 22:15:50 +00:00
app_alarmreceiver.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_amd.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_authenticate.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_cdr.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_celgenuserevent.c Merged revisions 282979 via svnmerge from 2010-08-20 11:54:22 +00:00
app_chanisavail.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_channelredirect.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_chanspy.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_confbridge.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_controlplayback.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_dahdibarge.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_dahdiras.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_db.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_dial.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_dictate.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_directed_pickup.c Opaquify char * and char[] in ast_channel 2012-02-13 17:27:06 +00:00
app_directory.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_disa.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_dumpchan.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_echo.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_exec.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_externalivr.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_fax.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_festival.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_flash.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_followme.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_forkcdr.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_getcpeid.c Replace direct access to channel name with accessor functions 2012-01-09 22:15:50 +00:00
app_ices.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_image.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_ivrdemo.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_jack.c Replace direct access to channel name with accessor functions 2012-01-09 22:15:50 +00:00
app_macro.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_meetme.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_milliwatt.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_minivm.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_mixmonitor.c Adds the ability to stop specific mixmonitors by using unique IDs set at monitor launch. 2012-01-23 18:16:20 +00:00
app_morsecode.c Merged revisions 336717 via svnmerge from 2011-09-19 20:23:29 +00:00
app_mp3.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_nbscat.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_originate.c Added support for all slin formats to app_originate 2011-12-14 22:36:30 +00:00
app_osplookup.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_page.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
app_parkandannounce.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_playback.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_playtones.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_privacy.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_queue.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_read.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_readexten.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_readfile.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_record.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_rpt.c Multiple revisions 356290,356335,356337 2012-02-23 03:27:01 +00:00
app_saycounted.c Merged revisions 336717 via svnmerge from 2011-09-19 20:23:29 +00:00
app_sayunixtime.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_senddtmf.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_sendtext.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_setcallerid.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_skel.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_sms.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_softhangup.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_speech_utils.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_stack.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_system.c If the argument to the system application is quoted, ensure we remove the quotes before trying to execute. 2010-03-11 20:25:02 +00:00
app_talkdetect.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_test.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_transfer.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_url.c Merged revisions 339777 via svnmerge from 2011-10-07 19:37:33 +00:00
app_userevent.c Opaquify channel stringfields 2012-01-24 20:12:09 +00:00
app_verbose.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_voicemail.c Fix crash in app_voicemail during close_mailbox 2012-02-25 17:22:55 +00:00
app_voicemail.exports.in Allow symbol export filtering to work properly on platforms that have symbol prefixes. 2010-04-02 18:57:58 +00:00
app_waitforring.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_waitforsilence.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
app_waituntil.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_while.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_zapateller.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
enter.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
leave.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
Makefile New HD ConfBridge conferencing application. 2011-04-21 18:11:40 +00:00
rpt_flow.pdf remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00