asterisk/apps
Corey Farrell 53658a14cc Fix unsafe uses of ast_context pointers.
Although ast_context_find, ast_context_find_or_create and
ast_context_destroy perform locking of the contexts table,
any context pointer can become invalid at any time that the
contexts table is unlocked. This change adds locking around
all complete operations involving these functions.

Places where ast_context_find was followed by ast_context_destroy
have been replaced with calls ast_context_destroy_by_name.

ASTERISK-25094 #close
Reported by: Corey Farrell

Change-Id: I1866b6787730c9c4f3f836b6133ffe9c820734fa
2015-06-08 11:23:38 -04:00
..
confbridge app_confbridge: Default the template option to a compatible default profile. 2015-04-24 12:20:22 -05:00
app_adsiprog.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 09:24:50 +00:00
app_alarmreceiver.c Fix typo's (retrieve, specified, address). 2015-01-23 14:51:03 +00:00
app_amd.c apps/app_amd: Document maximum_word_length option; fix AMDCAUSE documentation 2015-03-14 00:16:56 +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 Remove unnecessary channel module references. 2012-11-27 20:38:23 +00:00
app_chanisavail.c app_chanisavail: Fix use of uninitialized variable. 2012-03-14 23:29:32 +00:00
app_channelredirect.c Finalize ast_channel opaquification 2012-03-13 18:20:34 +00:00
app_chanspy.c app_chanspy, channel: fix frame leaks 2015-02-26 17:06:01 +00:00
app_confbridge.c app_confbridge: file playback blocks dtmf 2015-03-26 17:00:39 +00:00
app_controlplayback.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_dahdibarge.c Opaquify ast_channel typedefs, fd arrays, and softhangup flag 2012-03-01 22:09:18 +00:00
app_dahdiras.c Opaquify ast_channel typedefs, fd arrays, and softhangup flag 2012-03-01 22:09:18 +00:00
app_db.c Don't throw a spurious error when using DBdeltree 2013-02-14 03:48:39 +00:00
app_dial.c apps/app_dial: Fix Dial 'z' option 2014-08-17 23:07:06 +00:00
app_dictate.c clang compiler warnings: Fix -Wparantheses-equality warnings 2015-03-28 12:39:08 +00:00
app_directed_pickup.c Named call pickup groups. Fixes, missing functionality, and improvements. 2012-09-20 17:15:05 +00:00
app_directory.c Fix coverity UNUSED_VALUE findings in core support level files 2012-06-11 15:23:30 +00:00
app_disa.c Coverity Report: Fix issues for error type UNINIT in Core supported modules 2012-05-10 15:57:26 +00:00
app_dumpchan.c Allow Asterisk to compile under GCC 4.10 2014-05-09 22:28:40 +00:00
app_echo.c Prevent Echo() from relaying control, null, and modem frames 2012-03-20 20:42:34 +00:00
app_exec.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_externalivr.c Audit ast_sockaddr_resolve() usage for memory leaks. 2015-03-17 21:43:32 +00:00
app_fax.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
app_festival.c Allow Asterisk to compile under GCC 4.10 2014-05-09 22:28:40 +00:00
app_flash.c Opaquify ast_channel typedefs, fd arrays, and softhangup flag 2012-03-01 22:09:18 +00:00
app_followme.c Allow configured numbers for FollowMe to be greater than 90 characters 2012-09-06 00:59:23 +00:00
app_forkcdr.c app_forkcdr: ForkCDR v option does not keep CDR variables for subsequent records 2014-02-21 20:21:46 +00:00
app_getcpeid.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 09:24:50 +00:00
app_ices.c Add missing newlines to CLI logging 2012-04-06 18:19:03 +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 Fix dialplan function NULL channel safety issues 2014-03-27 19:13:09 +00:00
app_macro.c app_macro: Don't restore the calling location on a channel redirect. 2015-01-13 18:06:21 +00:00
app_meetme.c Fix unsafe uses of ast_context pointers. 2015-06-08 11:23:38 -04:00
app_milliwatt.c Replace GNU old-style field designator extensions to fix clang warnings 2012-04-04 18:08:28 +00:00
app_minivm.c clang compiler warnings: Fix pointer-bool-converesion warnings 2015-04-08 11:42:10 +00:00
app_mixmonitor.c apps/app_mixmonitor: Move Test Event for MIXMONITOR_END to after it finishes 2015-02-15 00:31:55 +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 Allow support for early media on AMI originates and call files. 2012-08-08 22:39:40 +00:00
app_osplookup.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 09:24:50 +00:00
app_page.c app_page and app_confbridge: Fix custom announcement on entering conference. 2013-02-05 19:09:40 +00:00
app_parkandannounce.c Make ParkAndAnnounce return to priority + 1 when return context is not defined 2013-02-24 15:37:26 +00:00
app_playback.c Check result of ast_var_assign() calls for memory allocation failure. 2013-08-06 08:19:42 +00:00
app_playtones.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_privacy.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
app_queue.c app_queue: Fix queue_log EXITWITHTIMEOUT containing only 1 parameter 2015-05-05 20:11:14 +00:00
app_read.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_readexten.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
app_readfile.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
app_record.c app_record: Fix bug where using the 'k' option and hanging up would trim 1/4 of a second of the recording. 2014-12-01 13:39:15 +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 Fix SendDTMF crash and channel reference leak using channel name parameter. 2012-09-27 22:19:03 +00:00
app_sendtext.c ast_channel opaquification of pointers and integral types 2012-02-20 23:43:27 +00:00
app_setcallerid.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +00:00
app_skel.c Fix minor reference leaks in app_skel and TEST_FRAMEWORK 2014-07-13 16:43:37 +00:00
app_sms.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 09:24:50 +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 datastores: Audit ast_channel_datastore_remove usage. 2014-07-28 18:34:18 +00:00
app_stack.c Allow Asterisk to compile under GCC 4.10 2014-05-09 22:28:40 +00:00
app_system.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
app_talkdetect.c Finalize ast_channel opaquification 2012-03-13 18:20:34 +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 Documentation: doc fixes across various parts of the code for ASTERISK issues 23061,23028,23046,23027 2014-01-17 15:40:37 +00:00
app_url.c Merged revisions 339777 via svnmerge from 2011-10-07 19:37:33 +00:00
app_userevent.c Add AMI event documentation 2012-06-25 17:59:34 +00:00
app_verbose.c Allow Asterisk to compile under GCC 4.10 2014-05-09 22:28:40 +00:00
app_voicemail.c Voicemail API: fix handling of full mailbox 2015-04-07 19:34:35 +00:00
app_voicemail.exports.in Remove some symbol exports that got missed in the removal of global symbols. 2012-06-15 15:33:41 +00:00
app_waitforring.c Multiple revisions 375993-375994 2012-11-07 19:03:42 +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 Clean up and ensure proper usage of alloca() 2012-07-31 20:21:43 +00:00
app_zapateller.c Opaquify ast_channel structs and lists 2012-02-29 16:52:47 +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 make: Remove 'res_features' from libraries to link against with cygwin/mingw32 2015-02-26 04:56:28 +00:00