video_buffer: Do not call memcpy() with the size greater than dest. 64/246164/3
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 26 Oct 2020 06:36:43 +0000 (15:36 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 27 Oct 2020 02:32:58 +0000 (11:32 +0900)
commita31a94ee5394230d1d0902a30ff299a6dec919ec
tree64547057b29f9584fcab8ec1812c22cd017599af
parentf8193c22fa299e2eacdca44fe660545ceaa67c47
video_buffer: Do not call memcpy() with the size greater than dest.

Calling memcpy() with the size greater than dest may lead to a segfault,
since this causes a buffer overrun.
The pitch size of src is not guaranteed to have the same size as dest.
So it should use min value.

Change-Id: I1565783a416ba9a6367b4a34b75c759a514f8572
src/bin/video/e_comp_wl_video_buffer.c