[asterisk-commits] may: trunk r365157 - in /trunk: ./ addons/ooh323c/src/ooq931.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 3 09:35:37 CDT 2012


Author: may
Date: Thu May  3 09:35:30 2012
New Revision: 365157

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=365157
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
........

Merged revisions 365155 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/addons/ooh323c/src/ooq931.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: trunk/addons/ooh323c/src/ooq931.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/ooh323c/src/ooq931.c?view=diff&rev=365157&r1=365156&r2=365157
==============================================================================
--- trunk/addons/ooh323c/src/ooq931.c (original)
+++ trunk/addons/ooh323c/src/ooq931.c Thu May  3 09:35:30 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