[asterisk-commits] may: branch 10 r365155 - in /branches/10: ./ addons/ooh323c/src/ooq931.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 3 09:27:05 CDT 2012
Author: may
Date: Thu May 3 09:27:00 2012
New Revision: 365155
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=365155
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)
........
Merged revisions 365143 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/addons/ooh323c/src/ooq931.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/addons/ooh323c/src/ooq931.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/addons/ooh323c/src/ooq931.c?view=diff&rev=365155&r1=365154&r2=365155
==============================================================================
--- branches/10/addons/ooh323c/src/ooq931.c (original)
+++ branches/10/addons/ooh323c/src/ooq931.c Thu May 3 09:27:00 2012
@@ -142,7 +142,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