Re: [PATCH v2 1/2] lib/graph: lib/graph: fix memset with NULL

2025-06-23 Thread David Marchand
On Tue, Jun 17, 2025 at 5:14 PM 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 a

[PATCH v2 1/2] lib/graph: lib/graph: fix memset with NULL

2025-06-17 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