asterisk/tests
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
..
Makefile Change the name of the category 'TEST' to match the name of the subdir 2010-03-23 19:19:52 +00:00
test_abstract_jb.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_acl.c clang compiler warnings: Fix various warnings for tests 2015-04-11 15:26:15 +00:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_aoc.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_app.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_ast_format_str_reduce.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_astobj2.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_astobj2_thrash.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_callerid.c CallerID: Fix parsing regression 2014-10-10 12:55:56 +00:00
test_config.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_db.c app_queue: Support persisting and loading of long member lists. 2012-10-01 20:26:09 +00:00
test_devicestate.c Make hints for invalid SIP devices return Unavail, not idle 2012-03-13 20:06:57 +00:00
test_dlinklists.c memory leaks: Memory leak cleanup patch by Corey Farrell (first set) 2013-10-23 19:55:05 +00:00
test_event.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_expr.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_format_api.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_func_file.c funcs/func_env: Fix regression caused in FILE read operation 2015-03-19 19:19:32 +00:00
test_gosub.c Fix unsafe uses of ast_context pointers. 2015-06-08 11:23:38 -04:00
test_hashtab_thrash.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_heap.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_jitterbuf.c Add tests for main/jitterbuf.c 2012-03-14 18:56:15 +00:00
test_linkedlists.c test_linkedlists: Fix memory leak 2013-10-24 19:55:23 +00:00
test_locale.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_logger.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_netsock2.c Add a unit test for ast_sockaddr_split_hostport 2011-11-09 19:31:27 +00:00
test_pbx.c Fix unsafe uses of ast_context pointers. 2015-06-08 11:23:38 -04:00
test_poll.c Add leading and trailing backslashes 2012-04-19 21:14:35 +00:00
test_sched.c clang compiler warnings: Fix various warnings for tests 2015-04-11 15:26:15 +00:00
test_security_events.c Update security events unit tests 2012-05-03 19:36:33 +00:00
test_skel.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_stringfields.c clang compiler warnings: Fix various warnings for tests 2015-04-11 15:26:15 +00:00
test_strings.c clang compiler warnings: Fix various warnings for tests 2015-04-11 15:26:15 +00:00
test_substitution.c test_substituition: Fix failed test reporting to actually report failure. 2013-08-30 16:57:00 +00:00
test_time.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_utils.c CallerID: Fix parsing of malformed callerid 2014-08-27 15:01:33 +00:00
test_voicemail_api.c Fix more dev-mode build issues 2014-07-22 14:00:33 +00:00
test_xml_escape.c Fix XML encoding of 'identity display' in NOTIFY messages. 2013-01-12 06:36:54 +00:00