Fixed memory scribbler in text vector blob 92/253492/1
authorDavid Steele <david.steele@samsung.com>
Tue, 9 Feb 2021 11:05:46 +0000 (11:05 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 11 Feb 2021 16:32:51 +0000 (16:32 +0000)
commit824bfa3ac3d3b1a903f4a6f1205b0d2fa107312c
tree59cee4a0e341f6bbdf6716d745cc73506074133a
parent57818b285f2485c7acd86d92f642f726b4a2bcca
Fixed memory scribbler in text vector blob

In the case where mTextureWidth was greater than the width passed in,
the texture copy was scribbling outside the pixbuf array. Changed
it to use the width passed in, so the pixbuf array should contain
only the required blob data.

Change-Id: I6e7dcbf9bd9a12df06319c81448ae9641751b85a
Signed-off-by: David Steele <david.steele@samsung.com>
(cherry picked from commit 6ee6340bae8a44b9257db3d7729e0018e1addb3d)
dali-toolkit/internal/text/rendering/vector-based/vector-blob-atlas.cpp