Re: [PATCH] lib: do not call memcpy with sz zero and null pointer

2022-09-21 Thread Henning Schild
Am Wed, 21 Sep 2022 15:06:12 +0200 schrieb Thomas Monjalon : > 07/09/2022 17:05, Henning Schild: > > There is no point in such a call and UBSan complains about a call to > > memcpy with a null pointer as second arg. > > > > When building with -Db_sanitize=undefined, Clang gives the following > >

Re: [PATCH] lib: do not call memcpy with sz zero and null pointer

2022-09-21 Thread Thomas Monjalon
07/09/2022 17:05, Henning Schild: > There is no point in such a call and UBSan complains about a call to > memcpy with a null pointer as second arg. > > When building with -Db_sanitize=undefined, Clang gives the following > warning > ../lib/bpf/bpf_load.c:37:20: runtime error: null pointer passed

[PATCH] lib: do not call memcpy with sz zero and null pointer

2022-09-09 Thread Henning Schild
There is no point in such a call and UBSan complains about a call to memcpy with a null pointer as second arg. When building with -Db_sanitize=undefined, Clang gives the following warning ../lib/bpf/bpf_load.c:37:20: runtime error: null pointer passed as argument 2, which is declared to ne