Mark Michelson
9d1f176e29
res_pjsip: Copy default_from_user to avoid crash.
...
The default_from_user retrieval function was pulling the
default_from_user from the global configuration struct in an unsafe way.
If using a database as a backend configuration store, the global
configuration struct is short-lived, so grabbing a pointer from it
results in referencing freed memory.
The fix here is to copy the default_from_user value out of the global
configuration struct.
Thanks go to John Hardin for discovering this problem and proposing the
patch on which this fix is based.
ASTERISK-25390 #close
Reported by Mark Michelson
Change-Id: I6b96067a495c1259da768f4012d44e03e7c6148c
2015-09-10 09:49:45 -05:00
..
2013-08-16 18:34:31 +00:00
2014-12-22 19:44:03 +00:00
2015-04-12 13:48:10 -05:00
2014-07-20 22:06:33 +00:00
2014-06-19 20:13:20 +00:00
2012-06-25 15:55:25 +00:00
2008-08-08 00:48:35 +00:00
2010-07-14 20:48:59 +00:00
2007-12-11 14:17:29 +00:00
2013-12-18 20:33:37 +00:00
2015-04-09 12:56:30 +00:00
2015-07-14 13:15:39 -05:00
2009-04-29 18:53:01 +00:00
2008-02-26 20:02:14 +00:00
2014-07-24 21:01:37 +00:00
2013-08-23 18:07:40 +00:00
2014-07-18 17:55:38 +00:00
2014-07-24 17:50:46 +00:00
2006-11-15 20:55:17 +00:00
2015-05-20 16:08:58 -05:00
2013-12-19 17:45:21 +00:00
2015-08-03 09:58:02 -05:00
2013-08-23 18:07:40 +00:00
2014-04-15 23:21:19 +00:00
2013-07-25 04:06:32 +00:00
2013-08-22 18:52:41 +00:00
2015-07-13 12:55:21 -05:00
2015-03-26 17:04:13 +00:00
2014-08-07 15:30:19 +00:00
2015-01-22 19:24:28 +00:00
2013-08-05 16:59:13 +00:00
2015-04-08 18:14:00 +00:00
2015-07-13 12:55:21 -05:00
2013-12-03 17:35:54 +00:00
2008-10-30 16:53:11 +00:00
2012-02-22 21:22:43 +00:00
2014-07-20 22:06:33 +00:00
2013-01-09 20:21:33 +00:00
2013-05-21 18:00:22 +00:00
2014-01-12 22:13:12 +00:00
2015-04-09 12:56:30 +00:00
2011-07-07 22:39:54 +00:00
2014-03-07 15:47:55 +00:00
2015-05-02 20:25:11 -04:00
2013-12-18 20:33:37 +00:00
2014-10-09 17:45:23 +00:00
2013-04-15 16:22:03 +00:00
2014-07-20 22:06:33 +00:00
2014-01-28 20:47:15 +00:00
2013-08-30 13:40:27 +00:00
2014-07-20 22:06:33 +00:00
2015-05-15 16:18:11 -06:00
2013-07-08 14:26:40 +00:00
2014-03-07 15:47:55 +00:00
2012-08-30 14:23:28 +00:00
2014-07-20 22:06:33 +00:00
2014-08-07 15:30:19 +00:00
2014-05-22 12:01:37 +00:00
2015-02-26 18:52:56 +00:00
2011-12-06 19:09:56 +00:00
2014-03-17 22:54:32 +00:00
2012-01-30 23:58:51 +00:00
2013-12-11 19:19:24 +00:00
2015-04-10 17:53:44 +00:00
2008-11-29 17:57:39 +00:00
2008-10-09 17:48:53 +00:00
2015-04-17 15:31:14 -05:00
2009-03-09 20:58:17 +00:00
2014-05-22 12:01:37 +00:00
2014-05-22 12:01:37 +00:00
2011-07-15 00:23:14 +00:00
2014-11-17 16:51:16 +00:00
2013-09-13 22:19:23 +00:00
2014-09-16 16:32:49 +00:00
2014-08-04 21:00:51 +00:00
2014-09-18 16:37:47 +00:00
2014-08-07 18:51:16 +00:00
2015-08-09 17:56:48 -05:00
2014-10-03 17:39:50 +00:00
2014-09-19 12:45:53 +00:00
2008-07-21 20:59:03 +00:00
2008-07-21 20:59:03 +00:00
2008-07-21 21:00:47 +00:00
2015-04-17 15:57:10 -05:00
2012-11-16 00:19:48 +00:00
2012-08-30 14:23:28 +00:00
2015-05-19 19:59:45 -05:00
2015-01-30 16:52:12 +00:00
2014-07-20 22:06:33 +00:00
2012-01-27 18:47:16 +00:00
2015-04-06 19:02:23 +00:00
2009-03-18 02:28:55 +00:00
2015-02-27 18:23:22 +00:00
2012-11-27 18:20:18 +00:00
2013-04-08 13:27:45 +00:00
2015-02-21 02:46:15 +00:00
2015-08-07 14:55:53 -05:00
2015-06-25 11:17:09 -05:00
2015-04-17 15:57:10 -05:00
2012-08-29 22:48:08 +00:00
2013-06-24 13:49:20 +00:00
2014-08-05 21:44:09 +00:00
2013-07-01 16:01:24 +00:00
2014-07-20 22:06:33 +00:00
2015-07-13 14:27:40 -05:00
2015-05-02 20:25:11 -04:00
2013-08-22 21:29:16 +00:00
2014-06-19 20:13:20 +00:00
2014-06-24 02:50:15 +00:00
2008-06-12 17:38:27 +00:00
2013-08-30 20:58:59 +00:00
2014-07-04 13:26:37 +00:00
2013-08-23 15:42:27 +00:00
2014-05-22 15:52:30 +00:00
2013-07-03 17:58:45 +00:00
2015-06-08 11:09:22 -04:00
2014-10-14 18:12:40 +00:00
2013-08-02 13:54:31 +00:00
2009-11-02 22:29:19 +00:00
2007-11-16 20:04:58 +00:00
2010-09-02 05:02:54 +00:00
2013-08-01 13:49:34 +00:00
2005-11-29 18:24:39 +00:00
2010-06-18 21:32:09 +00:00
2015-04-29 15:37:12 -05:00
2014-03-28 18:32:50 +00:00
2014-01-06 17:45:25 +00:00
2012-09-21 17:14:59 +00:00
2014-07-07 16:08:47 +00:00
2014-03-08 16:50:36 +00:00
2014-08-07 14:35:09 +00:00
2015-07-06 15:38:15 -05:00
2015-05-07 09:32:58 -03:00
2015-08-28 22:22:45 -03:00
2015-09-10 09:49:45 -05:00
2012-02-24 15:10:35 +00:00
2015-07-30 20:34:23 -05:00
2013-08-22 22:33:48 +00:00
2015-02-19 02:01:34 +00:00
2014-06-30 19:51:28 +00:00
2013-08-17 14:39:27 +00:00
2013-05-30 17:05:53 +00:00
2011-04-26 19:38:41 +00:00
2015-01-26 14:49:32 +00:00
2011-10-11 19:06:29 +00:00
2011-02-22 23:04:49 +00:00
2015-05-02 20:25:11 -04:00
2015-05-31 12:29:58 -05:00
2014-07-20 22:06:33 +00:00
2014-07-21 08:41:29 +00:00
2014-07-20 22:06:33 +00:00
2015-07-09 08:56:35 -05:00
2013-06-24 13:49:20 +00:00
2014-07-20 22:06:33 +00:00
2014-04-29 15:10:24 +00:00
2013-04-22 16:22:00 +00:00
2013-11-23 17:48:28 +00:00
2014-08-22 16:44:21 +00:00
2014-01-14 23:44:57 +00:00
2014-03-07 15:47:55 +00:00
2014-07-18 21:48:46 +00:00
2014-03-07 15:47:55 +00:00
2015-02-12 20:32:48 +00:00
2014-11-14 15:24:48 +00:00
2015-05-29 14:52:23 -05:00
2014-12-08 15:49:24 +00:00
2015-05-26 15:32:45 -06:00
2014-12-01 17:57:12 +00:00
2014-12-01 17:57:12 +00:00
2013-07-19 18:00:35 +00:00
2013-05-08 13:39:08 +00:00
2015-05-22 22:58:32 -04:00
2013-04-26 20:05:15 +00:00
2014-11-19 19:31:13 +00:00
2015-07-15 19:56:32 -05:00
2011-12-01 21:19:41 +00:00
2015-01-12 18:01:24 +00:00
2014-10-03 17:39:50 +00:00
2014-07-03 17:16:55 +00:00
2007-11-06 19:10:26 +00:00
2013-02-14 18:47:56 +00:00
2015-06-24 17:12:19 -05:00
2015-07-06 12:52:36 -05:00
2015-04-17 16:29:46 -05:00
2013-06-17 03:00:38 +00:00
2014-02-07 20:01:45 +00:00
2007-12-11 22:20:22 +00:00
2014-07-20 22:06:33 +00:00
2013-12-19 17:13:53 +00:00
2007-12-11 22:20:22 +00:00
2010-08-17 19:34:52 +00:00
2014-08-21 14:39:27 +00:00
2015-04-20 17:09:10 -05:00
2013-03-28 23:59:20 +00:00
2015-05-11 14:47:46 -06:00
2012-01-25 21:31:28 +00:00
2013-02-15 13:38:12 +00:00
2014-07-24 13:00:59 +00:00
2014-07-22 16:20:58 +00:00