[Tizen] Fix to use uint32_t for height index to decodeRGB8 for BMP 25/289525/1 accepted/tizen/7.0/unified/20230327.042626
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 9 Mar 2023 07:25:00 +0000 (16:25 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 9 Mar 2023 07:25:00 +0000 (16:25 +0900)
Change-Id: I8b561bf0752a5811b1eec8425676d776a5770545
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/loader-bmp.cpp

index 05d0518..08df18c 100644 (file)
@@ -730,7 +730,7 @@ bool DecodeRGB8(FILE*          fp,
       // the data in the file is bottom up, and we store the data top down
       pixelsPtr = pixels + (((height - 1) - index) * rowStride);
     }
-    for(std::uint8_t j = 0; j < width; ++j)
+    for(std::uint32_t j = 0; j < width; ++j)
     {
       ctIndex                = colorIndex[width * index + j];
       pixelsPtr[3 * j]       = colorTable[4 * ctIndex + 2];