Modify buffer overflow when image was rotated 84/160384/3
authorJiyong Min <jiyong.min@samsung.com>
Thu, 16 Nov 2017 02:21:14 +0000 (11:21 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 16 Nov 2017 02:52:13 +0000 (11:52 +0900)
commit3c6b33003fa746b24824ef68fb28dffd9bbce776
tree180084b6be30d6439d8e7bddcc393c30abb9e699
parentd50c86b0fad5d0e2a6f4326ca0255b718d3f17bf
Modify buffer overflow when image was rotated

[Problem] Crash happen by buffer overflow

[Cause]
The size of the buffer is calculated with width, height and format
The width should be a multiple of 4 or 8, so the size of the buffer is affected from the width.
But the width and the height were swapped for some cases. So the size of the buffer was not correct.

[Solution]
To swap the width and the height is not neccessary. It is removed.

Change-Id: I832b18a50470681588137ace90d0f6178c96a927
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
imgp/mm_util_imgp.c
packaging/libmm-utility.spec