Re: [PATCH v3 2/3] util: Add l_memcpy
Denis Kenzior <[email protected]> Thu, 31 Oct 2024 16:45:11 -0500
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
On 10/31/24 3:26 PM, Denis Kenzior wrote: > Some callers use memcpy without checking whether the size 'n' is 0 and > src is NULL. 'src' is declared as non-null and can thus cause > sanitizers to complain. Having 'src' as NULL is fine as long as 'n' is > 0. Add a new l_memcpy function to take care of this case. > --- > ell/util.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > Applied