- If the variable 'pixelFormat' is deliberately set to RGB16F or RGB32F,
then Pixel::GetBytesPerPixel() returns 12u or 24u.
- Then, 'Out-of-bound' error may occur because the return value exceeds
the scope of 'outputColor' array.
Change-Id: I5674b20d8976b925e12444eb9fc611e0d5633f49
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
}
const unsigned int bytesPerPixel = Dali::Pixel::GetBytesPerPixel(pixelFormat);
- if( bytesPerPixel == 0u )
+ if( bytesPerPixel == 0u || bytesPerPixel == 12u || bytesPerPixel == 24u )
{
return;
}