]> git.ipfire.org Git - thirdparty/asterisk.git/commit
the DAHDI_GETCONF, DAHDI_SETCONF and DAHDI_GET_PARAMS ioctls were recently corrected...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 2 Apr 2009 13:43:43 +0000 (13:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 2 Apr 2009 13:43:43 +0000 (13:43 +0000)
commit090f081e41f636250463ac9d07b264807199b7bf
treeb7ebc8246adf15668548759039770503de75d0bd
parent36c92eec0edb3ebe0041b0049507a02f4ae71f55
the DAHDI_GETCONF, DAHDI_SETCONF and DAHDI_GET_PARAMS ioctls were recently corrected to show that they do, in fact, read data from userspace as part of their work. due to this fix, valgrind now reports a number of cases where chan_dahdi passed an uninitialized (or partially) buffer to these ioctls, which could lead to unexpected behavior.

this patch corrects chan_dahdi to ensure that buffers passed to these ioctls are always fully initialized.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@185952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c