From: Heeyong Song Date: Mon, 23 May 2016 05:18:03 +0000 (+0900) Subject: Fix size error in wbmp loader X-Git-Tag: dali_1.1.36~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F70856%2F1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Fix size error in wbmp loader Change-Id: Ie90a734ed84d785e5d22e8d09a8004aec6354a5d --- 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;