From 9881dbe14875cb020c3d2bb54c30d84a756db2de Mon Sep 17 00:00:00 2001 From: Alexandr Anikin Date: Thu, 3 May 2012 14:27:00 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@365155 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- addons/ooh323c/src/ooq931.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/ooh323c/src/ooq931.c b/addons/ooh323c/src/ooq931.c index ee13d7b023..202595f5dd 100644 --- a/addons/ooh323c/src/ooq931.c +++ b/addons/ooh323c/src/ooq931.c @@ -142,7 +142,7 @@ EXTERN int ooQ931Decode } else { ie = (Q931InformationElement*) memAlloc (pctxt, - sizeof(*ie) - sizeof(ie->data)); + sizeof(*ie)); if(!ie) { OOTRACEERR3("Error:Memory - ooQ931Decode - ie(%s, %s)\n", -- 2.47.2