video_buffer: Do not call memcpy() with the size greater than dest. 90/247490/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 26 Oct 2020 06:36:43 +0000 (15:36 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 11 Nov 2020 06:25:15 +0000 (15:25 +0900)
commit5c9d90efa2215aa3657917a967e8b670f0bb8c6c
tree044877555dcc7da331e5de15a18b5ef0b6d72813
parent183902c5699ac78dcccde7435d7fb956752defc0
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: I3b4125cc7faa02bfc52e904160ffe711dc354594
src/bin/video/e_comp_wl_video_buffer.c