Acked-by: Chengwen Feng <fengcheng...@huawei.com> On 7/23/2025 9:31 PM, David Marchand wrote: > From: Marat Khalili <marat.khal...@huawei.com> > > 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 depending on stat->xstat_count being NULL.) > > Sanitizer message: > > lib/graph/graph_stats.c:473:2: runtime error: null pointer passed as > argument 1, which is declared to never be null > > Add a check that stat->xstat_cntrs is not zero before the call, since > stat->xstat_count can only be NULL when stat->xstat_cntrs is zero. > > Fixes: 070db97e017b ("graph: support node xstats") > Cc: sta...@dpdk.org > > Signed-off-by: Marat Khalili <marat.khal...@huawei.com>
- [PATCH v5 08/22] hash: fix unaligned access in predictabl... David Marchand
- [PATCH v5 10/22] build: support Undefined Behavior Saniti... David Marchand
- [PATCH v5 09/22] stack: fix unaligned accesses on 128-bit David Marchand
- [PATCH v5 12/22] ipc: fix mp message alignment for malloc David Marchand
- [PATCH v5 11/22] test/telemetry: catch errors in subshell David Marchand
- RE: [PATCH v5 11/22] test/telemetry: catch errors in... Marat Khalili
- [PATCH v5 13/22] graph: fix stats query with no node xsta... David Marchand
- Re: [PATCH v5 13/22] graph: fix stats query with no ... fengchengwen
- [PATCH v5 14/22] graph: fix unaligned access in stats David Marchand
- [PATCH v5 16/22] test/power: fix tests without power driv... David Marchand
- [PATCH v5 17/22] test/raw: fix test without skeleton driv... David Marchand
- [PATCH v5 15/22] eventdev: fix listing timer adapters wit... David Marchand
- [PATCH v5 18/22] net: fix IPv4 macro with highest bit David Marchand
- [PATCH v5 19/22] rib6: fix some highest bits handling David Marchand
- Re: [PATCH v5 19/22] rib6: fix some highest bits han... Bruce Richardson