filesink: Fix crash caused by zero-size memory allocation
authorSeungha Yang <seungha@centricular.com>
Sat, 28 Mar 2020 07:20:51 +0000 (16:20 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 28 Mar 2020 07:20:51 +0000 (16:20 +0900)
commit5c74c8c4f85d00ab1d0d89d56b5cdfc744fd1890
treea8477a14bf8b30cf97f58c3b6f84b97d5cee9c2b
parente98ccc76651c12b1f91c08c144b9eafecc37eb30
filesink: Fix crash caused by zero-size memory allocation

If size of vector is greater than one, we are allocating zero-size
memory and trying invalid memcpy operation
plugins/elements/gstelements_private.c