prevent out of bounds 85/209485/4
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 8 Jul 2019 08:14:04 +0000 (17:14 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 10 Jul 2019 03:58:07 +0000 (12:58 +0900)
commit9b0e2a7f8d06fde846298592837afa5ccf1d5880
tree640bcbc273cf6223dba58df016926fc74eff15be
parentd8b52fede008a48f35867f059f3385dbde63bf22
prevent out of bounds

If bytesPerPixel is 0, the alphaIndex value is 4294967295.
  const unsigned int bytesPerPixel = Dali::Pixel::GetBytesPerPixel(pixelFormat);
  const unsigned int alphaIndex = bytesPerPixel - 1u;

Change-Id: Ia7c1dc67d913141bd8d2c2fad062d7d861843fd1
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Circular.cpp
dali-toolkit/devel-api/text/text-utils-devel.cpp