]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix func_config list entry allocation
authorKinsey Moore <kmoore@digium.com>
Tue, 8 Oct 2013 18:19:23 +0000 (18:19 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 8 Oct 2013 18:19:23 +0000 (18:19 +0000)
commitb671dcde045724048f79ecd4d1ec64b6ba1754b5
tree6b09b2936fb5d071dbfa73855e82015bbea44679
parentb04d30f1c7e3f9928b92adb5289381adcc6a6aa8
Fix func_config list entry allocation

The AST_CONFIG dialplan function defined in func_config.c allocates its
config file list entries using ast_malloc. List entry allocations
destined for use with Asterisk's linked list API must be ast_calloc()d
or otherwise initialized so that list pointers are set to NULL. These
uses of ast_malloc have been replaced by ast_calloc to prevent
dereferencing of uninitialized pointer values when traversing the list.

(closes issue ASTERISK-22483)
Reported by: Brian Scott
........

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

Merged revisions 400697 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_config.c