Files
asterisk/main
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
..
2010-03-03 16:43:10 +00:00
2009-03-04 20:48:42 +00:00
2010-01-08 19:39:30 +00:00
2009-12-01 20:27:37 +00:00
2009-09-29 21:28:04 +00:00
2009-12-30 20:34:41 +00:00
2009-08-10 19:20:57 +00:00
2008-07-21 21:00:47 +00:00
2009-11-02 20:43:52 +00:00
2009-03-18 02:28:55 +00:00
2010-01-28 22:37:15 +00:00
2010-01-13 10:45:19 +00:00
2010-03-10 23:15:55 +00:00
2010-03-17 00:40:51 +00:00