Clean up and ensure proper usage of alloca()
authorKinsey Moore <kmoore@digium.com>
Tue, 31 Jul 2012 20:21:43 +0000 (20:21 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 31 Jul 2012 20:21:43 +0000 (20:21 +0000)
commit9b16c8b0f6c3b6310e303411421bfcb16b26c3c4
tree273c31a834a21bd2239ec6b83cd35c602ea25d26
parent6c23a60f802e7708389b1a6463a40dc0500512bd
Clean up and ensure proper usage of alloca()

This replaces all calls to alloca() with ast_alloca() which calls gcc's
__builtin_alloca() to avoid BSD semantics and removes all NULL checks
on memory allocated via ast_alloca() and ast_strdupa().

(closes issue ASTERISK-20125)
Review: https://reviewboard.asterisk.org/r/2032/
Patch-by: Walter Doekes (wdoekes)
........

Merged revisions 370642 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 370643 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
64 files changed:
addons/app_mysql.c
addons/chan_mobile.c
addons/res_config_mysql.c
apps/app_dictate.c
apps/app_directed_pickup.c
apps/app_festival.c
apps/app_getcpeid.c
apps/app_macro.c
apps/app_meetme.c
apps/app_minivm.c
apps/app_mixmonitor.c
apps/app_osplookup.c
apps/app_sms.c
apps/app_voicemail.c
apps/app_while.c
cdr/cdr_pgsql.c
channels/chan_alsa.c
channels/chan_dahdi.c
channels/chan_gtalk.c
channels/chan_iax2.c
channels/chan_jingle.c
channels/chan_sip.c
channels/sig_analog.c
channels/sig_pri.c
channels/sig_ss7.c
funcs/func_channel.c
funcs/func_cut.c
funcs/func_global.c
funcs/func_logic.c
funcs/func_strings.c
include/asterisk/strings.h
include/asterisk/utils.h
main/app.c
main/asterisk.c
main/astmm.c
main/callerid.c
main/channel.c
main/config.c
main/db.c
main/dsp.c
main/event.c
main/features.c
main/file.c
main/http.c
main/logger.c
main/manager.c
main/pbx.c
main/say.c
main/strcompat.c
main/tcptls.c
main/threadstorage.c
main/utils.c
pbx/pbx_ael.c
pbx/pbx_dundi.c
pbx/pbx_lua.c
pbx/pbx_realtime.c
pbx/pbx_spool.c
res/ael/pval.c
res/res_agi.c
res/res_config_pgsql.c
res/res_http_websocket.c
res/res_jabber.c
tests/test_linkedlists.c
utils/extconf.c