On 11/7/25 00:50, Richard Henderson wrote:
Avoid ubsan failure with clang-20,
tcg.h:715:19: runtime error: applying non-zero offset 64 to null pointer
by not using pointers.
Cc: Ilya Leoshkevich <i...@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
Supercedes: 20250618183759.9197-1-...@linux.ibm.com
("[PATCH v2] tcg: Remove NULL arithmetic in tcg_malloc()")
Ilya, I think I prefer this solution to &dummy_pool.
What do you think?
r~
---
include/tcg/tcg.h | 6 +++---
tcg/tcg.c | 9 +++++----
2 files changed, 8 insertions(+), 7 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>