summaryrefslogtreecommitdiff
path: root/codecs/lpc10/lpcini.c
AgeCommit message (Collapse)Author
2015-05-13MALLOC_DEBUG: Replace WRAP_LIBC_MALLOC with ASTMM_LIBC.Corey Farrell
There are 3 ways that calls directly to standard allocator functions can be dealt with: 1. Block their use, cause them to generate an error. This is the default. 2. Replace them with the Asterisk equivalent function calls. 3. Leave them alone. This change allows one of these 3 options to be selected by any source. The source just needs to define ASTMM_LIBC to ASTMM_BLOCK, ASTMM_REDIRECT, or ASTMM_IGNORE to use option 1, 2 or 3 respectively. Normally ASTMM_BLOCK is the correct option, so it is default when ASTMM_LIBC is not defined. In some cases when building 3rd party code it is desirable to have it use Asterisk functions, without changing the whole source - ASTMM_REDIRECT accomplishes this. When using 3rd party libraries sometimes a static inline function will make use of malloc or free. In these cases it may be unsafe to replace the allocator in the header, as it's possible the memory could be freed by the library using standard allocators. For those cases ASTMM_IGNORE is needed. Change-Id: I8afef4bc7f3b93914263ae27d3a5858b69663fc7
2015-05-08Fix crash in codec_lpc10 when MALLOC_DEBUG is enabled.Corey Farrell
This switches codecs/lpc10/lpcini.c back to including "asterisk.h" instead of <stdlib.h>. lpcini.c allocates memory that is freed by codec_lpc10.c, so it is important to use MALLOC_DEBUG allocator. Added #define WRAP_LIBC_MALLOC to the start of the source to prevent runtime symbol link error's. Change-Id: I74f63fd09fdeb673ee7753122c3bb4722ab6e1ac
2015-05-04Modules: Make ast_module_info->self available to auxiliary sources.Corey Farrell
ast_module_info->self is often needed to register items with the core. Many modules have ad-hoc code to make this pointer available to auxiliary sources. This change updates the module build process to make the needed information available to all sources in a module. ASTERISK-25056 #close Reported by: Corey Farrell Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
2008-10-15When using MALLOC_DEBUG, codec_lpc10 leaks memory, because it matches a libraryTilghman Lesher
malloc() with an ast_free (which, of course, doesn't match up with known allocated memory, so the free fails). (closes issue #13702) Reported by: eliel Patches: codec_lpc10_lpcini.c uploaded by eliel (license 64) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13Merged revisions 45079 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r45079 | file | 2006-10-13 14:42:49 -0400 (Fri, 13 Oct 2006) | 2 lines And file said... let the compiler warnings STOP! ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-09get rid of some more compiler warnings (thanks tholo for making me fix the ↵Kevin P. Fleming
lpc10 stuff... that had been a problem for far too long) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29remove extraneous svn:executable propertiesKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-21Fix include orderMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-21FreeBSD patch, take 2Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-16Revert the previous patch since it's braking compilationMartin Pycko
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-16Sane FreeBSD patchMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-02-12mer feb 12 14:56:57 CET 2003Matteo Brancaleoni
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.3.0 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.2.0 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.12 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.11 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.10 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.9 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.8 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.7 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.6 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.5 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.4 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.3 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2000-01-05Version 0.1.2 from FTPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@169 65c4cc65-6c06-0410-ace0-fbb531ad65f3