Fix to use uint32_t for height index to decodeRGB8 for BMP 80/289580/1
authorseungho baek <sbsh.baek@samsung.com>
Thu, 9 Mar 2023 06:46:38 +0000 (15:46 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 10 Mar 2023 03:28:21 +0000 (12:28 +0900)
Change-Id: Ia16c807e11cd745305a3d3353561b3eafa8934b5

dali/internal/imaging/common/loader-bmp.cpp

index 6d3a5de..fe108c3 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];