shared/util: Check arguments on util_memcpy
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 23 Jan 2023 23:56:47 +0000 (15:56 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commit3d7938a531d86d608a85ce1b50c3aac207b610ae
treefa21fce0dd6957d2af11384d2b7e3f3b5b1ccfb5
parentef3c7d347a2d6dcaf6f907fb59ce3bdb20721e13
shared/util: Check arguments on util_memcpy

This avoids having to check for !src or !len before calling util_memcpy
since otherwise it can cause runtime errors.
src/shared/util.c