Alec L Davis
743b168319
prevent segfault if bad magic number is encountered.
...
internal_ao2_ref uses INTERNAL_OBJ which mzy report 'bad magic number', but
internal_ao2_ref continues on, causing segfault.
Although AO2_MAGIC number is checked by INTERNAL_OBJ before internal_ao2_ref is
called, A02_MAGIC is being destroyed (or a wrong pointer) by the time
internal_ao2_ref uses INTERNAL_OBJ.
internal_ao2_ref now returns -1 if INTERNAL_OBJ encouters a bad magic number.
(issue #17037 )
Reported by: alecdavis
Patches:
bug17037.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-19 07:37:00 +00:00
..
2009-08-01 11:29:25 +00:00
2010-03-03 16:43:10 +00:00
2010-03-18 15:45:26 +00:00
2010-03-10 18:25:18 +00:00
2010-02-25 22:41:48 +00:00
2009-03-04 20:48:42 +00:00
2009-08-19 22:38:46 +00:00
2010-03-13 22:21:18 +00:00
2009-12-28 22:09:40 +00:00
2010-02-08 20:41:05 +00:00
2009-03-03 22:12:02 +00:00
2009-12-28 22:09:40 +00:00
2010-02-08 20:41:05 +00:00
2010-03-18 18:23:07 +00:00
2009-11-30 16:53:10 +00:00
2009-11-04 14:05:12 +00:00
2009-11-06 15:42:46 +00:00
2009-05-22 16:53:41 +00:00
2010-03-19 07:37:00 +00:00
2010-01-08 19:39:30 +00:00
2009-04-24 14:04:26 +00:00
2009-11-04 14:05:12 +00:00
2009-11-04 14:05:12 +00:00
2008-10-30 16:49:02 +00:00
2009-12-01 20:27:37 +00:00
2010-02-26 08:35:42 +00:00
2009-09-29 21:28:04 +00:00
2010-03-12 22:04:51 +00:00
2008-10-14 22:38:06 +00:00
2009-12-30 20:34:41 +00:00
2010-01-18 19:57:52 +00:00
2008-10-10 00:42:13 +00:00
2009-05-05 10:34:19 +00:00
2009-06-15 17:34:30 +00:00
2009-07-08 22:15:06 +00:00
2010-03-03 19:38:06 +00:00
2009-07-08 16:43:12 +00:00
2009-08-10 19:20:57 +00:00
2009-12-20 08:22:35 +00:00
2010-01-18 22:31:25 +00:00
2010-02-10 23:19:16 +00:00
2010-03-10 20:51:23 +00:00
2010-02-05 19:07:18 +00:00
2008-08-06 00:30:53 +00:00
2010-01-26 18:07:57 +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
2009-01-30 21:29:12 +00:00
2009-03-11 00:29:59 +00:00
2009-03-27 01:35:56 +00:00
2009-11-02 20:43:52 +00:00
2009-06-15 17:34:30 +00:00
2009-11-04 14:05:12 +00:00
2009-03-18 02:28:55 +00:00
2009-02-10 18:16:31 +00:00
2010-02-17 07:01:13 +00:00
2010-02-24 21:17:26 +00:00
2010-03-08 05:12:55 +00:00
2010-01-28 22:37:15 +00:00
2009-10-08 19:35:30 +00:00
2010-02-08 23:23:45 +00:00
2010-01-13 10:45:19 +00:00
2010-03-12 22:04:51 +00:00
2010-01-04 21:48:20 +00:00
2010-02-03 19:26:53 +00:00
2009-07-11 19:15:03 +00:00
2009-11-04 14:05:12 +00:00
2010-01-19 00:28:49 +00:00
2009-07-09 08:31:24 +00:00
2009-12-06 07:01:06 +00:00
2010-02-17 21:22:40 +00:00
2009-04-03 22:41:46 +00:00
2009-06-26 13:00:35 +00:00
2010-02-22 06:45:52 +00:00
2010-02-16 21:03:34 +00:00
2009-04-01 20:13:28 +00:00
2010-02-24 21:17:26 +00:00
2010-03-17 19:06:04 +00:00
2009-06-01 15:23:21 +00:00
2010-01-18 22:31:25 +00:00
2009-12-04 21:06:22 +00:00
2010-02-02 22:27:23 +00:00
2009-08-19 22:38:46 +00:00
2010-03-10 23:15:55 +00:00
2009-08-17 16:25:10 +00:00
2010-03-17 00:40:51 +00:00