]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix func_config list entry allocation
authorKinsey Moore <kmoore@digium.com>
Tue, 8 Oct 2013 18:18:21 +0000 (18:18 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 8 Oct 2013 18:18:21 +0000 (18:18 +0000)
commit09df02a03e8cab60f9f0264922e8047fa0250048
tree0d6c1554e173f46e32865cef558eb34688f0fc32
parent69ab5a7cd129a134ec162b755d85d31e68269bd3
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

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