]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Use uintptr_t in tcg_malloc implementation
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 10 Jul 2025 22:42:47 +0000 (16:42 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 11 Jul 2025 16:43:47 +0000 (10:43 -0600)
commitc86da2b1dd7589d414b5a2d1e5361d6c3b4ca885
tree94f746cd10570d087693b329c4989106dce478d0
parente4e839b2eeea5745c48ce47144c7842eb7cd455f
tcg: Use uintptr_t in tcg_malloc implementation

Avoid ubsan failure with clang-20,
  tcg.h:715:19: runtime error: applying non-zero offset 64 to null pointer
by not using pointers.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg.h
tcg/tcg.c