From 2dddc263fc2d3025e26cd7981511616a5b1b0a33 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 23 May 2016 14:18:03 +0900 Subject: [PATCH] Fix size error in wbmp loader Change-Id: Ie90a734ed84d785e5d22e8d09a8004aec6354a5d --- platform-abstractions/tizen/image-loaders/loader-wbmp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform-abstractions/tizen/image-loaders/loader-wbmp.cpp b/platform-abstractions/tizen/image-loaders/loader-wbmp.cpp index 8014bc6..793ba93 100755 --- a/platform-abstractions/tizen/image-loaders/loader-wbmp.cpp +++ b/platform-abstractions/tizen/image-loaders/loader-wbmp.cpp @@ -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; -- 2.7.4