[asterisk-commits] may: branch 1.8 r365143 - /branches/1.8/addons/ooh323c/src/ooq931.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 3 09:18:30 CDT 2012
Author: may
Date: Thu May 3 09:18:25 2012
New Revision: 365143
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=365143
Log:
Fix coverity static analysis warning, allocate full ie structure
instead of without data buffer
(close issue ASTERISK-19674)
Reported by: Matt Jordan
Patches:
ASTERISK-19674.patch (License #5415)
Modified:
branches/1.8/addons/ooh323c/src/ooq931.c
Modified: branches/1.8/addons/ooh323c/src/ooq931.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/ooh323c/src/ooq931.c?view=diff&rev=365143&r1=365142&r2=365143
==============================================================================
--- branches/1.8/addons/ooh323c/src/ooq931.c (original)
+++ branches/1.8/addons/ooh323c/src/ooq931.c Thu May 3 09:18:25 2012
@@ -140,7 +140,7 @@
}
else {
ie = (Q931InformationElement*) memAlloc (pctxt,
- sizeof(*ie) - sizeof(ie->data));
+ sizeof(*ie));
if(!ie)
{
OOTRACEERR3("Error:Memory - ooQ931Decode - ie(%s, %s)\n",
More information about the asterisk-commits
mailing list