Re: [PATCH v2 07/10] tailq: fix cast macro for null pointer

2025-07-16 Thread David Marchand
On Mon, Jun 30, 2025 at 6:06 PM Marat Khalili wrote: > > > -Original Message- > > From: David Marchand > > Sent: Monday 23 June 2025 14:53 > > To: dev@dpdk.org > > Cc: sta...@dpdk.org; Bruce Richardson ; Tyler > > Retzlaff ; Neil Horman > >

RE: [PATCH v2 07/10] tailq: fix cast macro for null pointer

2025-06-30 Thread Marat Khalili
> -Original Message- > From: David Marchand > Sent: Monday 23 June 2025 14:53 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Bruce Richardson ; Tyler > Retzlaff ; Neil Horman > > Subject: [PATCH v2 07/10] tailq: fix cast macro for null pointer > > Doing arithm

[PATCH v2 07/10] tailq: fix cast macro for null pointer

2025-06-23 Thread David Marchand
Doing arithmetics with the NULL pointer is undefined. Caught by UBSan: ../app/test/test_tailq.c:111:9: runtime error: member access within null pointer of type 'struct rte_tailq_head' Fixes: f6b4f6c9c123 ("tailq: use a single cast macro") Cc: sta...@dpdk.org Signed-off-by: David Marchan