mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 13:25:17 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@365157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -142,7 +142,7 @@ EXTERN int ooQ931Decode
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ie = (Q931InformationElement*) memAlloc (pctxt,
|
ie = (Q931InformationElement*) memAlloc (pctxt,
|
||||||
sizeof(*ie) - sizeof(ie->data));
|
sizeof(*ie));
|
||||||
if(!ie)
|
if(!ie)
|
||||||
{
|
{
|
||||||
OOTRACEERR3("Error:Memory - ooQ931Decode - ie(%s, %s)\n",
|
OOTRACEERR3("Error:Memory - ooQ931Decode - ie(%s, %s)\n",
|
||||||
|
Reference in New Issue
Block a user