Author: pfg
Date: Sun Nov 29 23:57:30 2015
New Revision: 1717140

URL: http://svn.apache.org/viewvc?rev=1717140&view=rev
Log:
Use after free

After deleting a structure we shouldn't try to reuse it:
return the vslue directly.

CID:    440614



Modified:
    openoffice/trunk/main/idlc/source/fehelper.cxx

Modified: openoffice/trunk/main/idlc/source/fehelper.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/idlc/source/fehelper.cxx?rev=1717140&r1=1717139&r2=1717140&view=diff
==============================================================================
--- openoffice/trunk/main/idlc/source/fehelper.cxx (original)
+++ openoffice/trunk/main/idlc/source/fehelper.cxx Sun Nov 29 23:57:30 2015
@@ -85,7 +85,7 @@ AstType const * FeDeclarator::compose(As
                        if ( (AstDeclaration*)pArray != pDecl2 )
                        {
                                delete m_pComplexPart;
-                               m_pComplexPart = pDecl2;        
+                               return (AstType*)pDecl2;
                        }
                }
                return pArray;


Reply via email to