Re: [PATCH v3] lib/graph: lib/graph: fix memset with NULL

2025-07-08 Thread David Marchand
On Wed, Jun 25, 2025 at 11:29 AM Marat Khalili wrote: > > This was flagged by undefined behaviour sanitizer: memset should not be > called with NULL first argument. (memset requires first argument to be > pointer to a memory object, so passing NULL may result in an undefined > behaviour including

[PATCH v3] lib/graph: lib/graph: fix memset with NULL

2025-06-25 Thread Marat Khalili
This was flagged by undefined behaviour sanitizer: memset should not be called with NULL first argument. (memset requires first argument to be pointer to a memory object, so passing NULL may result in an undefined behaviour including among other things optimizer potentially removing code paths depe