From: Krzysztof Dynowski Date: Mon, 23 Oct 2017 15:41:12 +0000 (+0200) Subject: SVACE: fix UNINIT.CTOR X-Git-Tag: submit/tizen_4.0/20171024.152729~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F157206%2F2;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git SVACE: fix UNINIT.CTOR Change-Id: I4029146e8b408e931b0555bd7e9ac8d61722741f --- diff --git a/TEEStub/PropertyAccess/Property.h b/TEEStub/PropertyAccess/Property.h index f7413ea..80ecb4c 100644 --- a/TEEStub/PropertyAccess/Property.h +++ b/TEEStub/PropertyAccess/Property.h @@ -54,7 +54,7 @@ public: void setPropSet(uintptr_t propset) { this->propset = propset; }; - Property() { + Property() : propset(0) { } ; virtual ~Property() { diff --git a/TEEStub/PropertyAccess/rapidxml/rapidxml.hpp b/TEEStub/PropertyAccess/rapidxml/rapidxml.hpp index 73a2b78..f1aa61e 100644 --- a/TEEStub/PropertyAccess/rapidxml/rapidxml.hpp +++ b/TEEStub/PropertyAccess/rapidxml/rapidxml.hpp @@ -617,7 +617,7 @@ public: // Construct a base with empty name, value and parent xml_base() : - m_name(0), m_value(0), m_parent(0) { + m_name(0), m_value(0), m_name_size(0), m_value_size(0), m_parent(0) { } /////////////////////////////////////////////////////////////////////////// @@ -756,7 +756,7 @@ public: //! Constructs an empty attribute with the specified type. //! Consider using memory_pool of appropriate xml_document if allocating attributes manually. - xml_attribute() { + xml_attribute() : m_prev_attribute(0), m_next_attribute(0) { } /////////////////////////////////////////////////////////////////////////// @@ -839,7 +839,8 @@ public: //! Consider using memory_pool of appropriate document to allocate nodes manually. //! \param type Type of node to construct. xml_node(node_type type) : - m_type(type), m_first_node(0), m_first_attribute(0) { + m_type(type), m_first_node(0), m_last_node(0), m_first_attribute(0), m_last_attribute(0), + m_prev_sibling(0), m_next_sibling(0) { } /////////////////////////////////////////////////////////////////////////// diff --git a/TEEStub/TEEStubServer/ConnectionSession.h b/TEEStub/TEEStubServer/ConnectionSession.h index 08df68c..0d7b453 100644 --- a/TEEStub/TEEStubServer/ConnectionSession.h +++ b/TEEStub/TEEStubServer/ConnectionSession.h @@ -52,7 +52,7 @@ class ConnectionSession: public boost::enable_shared_from_thispData = (cc_u32*)(void*)(pbBuf + sizeof(SDRM_BIG_NUM)); + BN_Src->pData = (cc_u32*)(void*)((char*)BN_Src + sizeof(SDRM_BIG_NUM)); BN_Src->Size = dSize; return BN_Src; @@ -3107,8 +3106,8 @@ cc_u8 * SDRM_BN2STRFOUR(cc_u32 *numberBits, SDRM_BIG_NUM *BN_Src) num = SDRM_BN_Init(BN_Src->Size); if( num == NULL)//fix prevent cid = 89093 by guoxing.xu { - free(num); free(strDestTemp); + SDRM_BN_FREE(tempREM); SDRM_BN_FREE(d); return NULL; }