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

2025-06-20 Thread Bruce Richardson
On Thu, Jun 19, 2025 at 09:10:33AM +0200, David Marchand wrote: > 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 ("tail

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

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