Fix size error in wbmp loader 56/70856/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 23 May 2016 05:18:03 +0000 (14:18 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 23 May 2016 05:31:05 +0000 (14:31 +0900)
Change-Id: Ie90a734ed84d785e5d22e8d09a8004aec6354a5d

platform-abstractions/tizen/image-loaders/loader-wbmp.cpp

index 8014bc6..793ba93 100755 (executable)
@@ -267,7 +267,7 @@ bool LoadWbmpHeader( const ImageLoader::Input& input, unsigned int& width, unsig
     return false;
   }
 
-  if (extractMultiByteInteger(&type, &map[0], fsize, &position) < 0)
+  if (extractMultiByteInteger(&type, &map[0], headerSize, &position) < 0)
   {
     DALI_LOG_ERROR("Error: unable to read type!");
     return false;
@@ -278,12 +278,12 @@ bool LoadWbmpHeader( const ImageLoader::Input& input, unsigned int& width, unsig
     DALI_LOG_ERROR("Error: unknown format!\n");
     return false;
   }
-  if (extractMultiByteInteger(&w, &map[0], fsize, &position) < 0)
+  if (extractMultiByteInteger(&w, &map[0], headerSize, &position) < 0)
   {
     DALI_LOG_ERROR("Error: can not read width!\n");
     return false;
   }
-  if (extractMultiByteInteger(&h, &map[0], fsize, &position) < 0)
+  if (extractMultiByteInteger(&h, &map[0], headerSize, &position) < 0)
   {
     DALI_LOG_ERROR("Error: can not read height!\n");
     return false;