[ITC/UTC][dali-core][Non-ACR][Fix memory overwrap issue in memcpy] 08/243208/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 4 Sep 2020 02:40:15 +0000 (11:40 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 7 Sep 2020 08:22:44 +0000 (17:22 +0900)
Matrix() gets float[16] array.

Change-Id: I4f9472e170fa46023f78e59ac2ca82bdf7786107

src/itc/dali-core/property-types/ITs-property-types.cpp
src/utc/dali-core/property-types/utc-dali-property-types.cpp

index c5f02bd0b33e5cd59938479c88e923aa99ed32dc..57cfdfe5ba6d785af6d59d49835686c3b06ca776 100755 (executable)
@@ -344,7 +344,7 @@ void PropertyTypesMatrix3()
 
 void PropertyTypesMatrix()
 {
-       float frgValues[]  = {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f};
+    float frgValues[16] = { 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f };
        Matrix matSetValue( frgValues );
                        
        Property::Value value( matSetValue );
@@ -518,7 +518,7 @@ void PropertyTypesGetMatrix3TypeName()
 
 void PropertyTypesGetMatrixTypeName()
 {
-       float frgValue[] = { 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f};
+    float frgValue[16] = { 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f };
        Matrix matValue( frgValue );
        
        bool bRet = false;
index 9c8be7478e3a2d62e7b78e883076a654266949dd..c5eb5201955615f2e41392d85e7aad2e810756d4 100755 (executable)
@@ -221,7 +221,7 @@ void PropertyTypesMatrix3()
 
 void PropertyTypesMatrix()
 {
-  float frgValues[]  = {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f};
+  float frgValues[16] = { 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f };
   Matrix matSetValue( frgValues );
 
   Property::Value value( matSetValue );
@@ -395,7 +395,7 @@ void PropertyTypesGetMatrix3TypeName()
 
 void PropertyTypesGetMatrixTypeName()
 {
-  float frgValue[] = { 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f};
+  float frgValue[16] = { 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f };
   Matrix matValue( frgValue );
 
   bool bRet = false;