Re: [PATCH] tcg: Remove null pointer arithmetic in tcg_malloc()

2025-06-18 Thread Richard Henderson
On 6/18/25 03:35, Ilya Leoshkevich wrote: Clang 20.1.6 (Fedora 20.1.6-1.fc42)'s UBSAN complains: qemu/include/tcg/tcg.h:715:19: runtime error: applying non-zero offset 64 to null pointer The code uses NULL as pool's initial start and end, with the intention that `pool_cur + size > pool_en

Re: [PATCH] tcg: Remove null pointer arithmetic in tcg_malloc()

2025-06-18 Thread Ilya Leoshkevich
On Wed, 2025-06-18 at 12:35 +0200, Ilya Leoshkevich wrote: > Clang 20.1.6 (Fedora 20.1.6-1.fc42)'s UBSAN complains: > >     qemu/include/tcg/tcg.h:715:19: runtime error: applying non-zero > offset 64 to null pointer > > The code uses NULL as pool's initial start and end, with the > intention > th

[PATCH] tcg: Remove null pointer arithmetic in tcg_malloc()

2025-06-18 Thread Ilya Leoshkevich
Clang 20.1.6 (Fedora 20.1.6-1.fc42)'s UBSAN complains: qemu/include/tcg/tcg.h:715:19: runtime error: applying non-zero offset 64 to null pointer The code uses NULL as pool's initial start and end, with the intention that `pool_cur + size > pool_end` should trigger the allocation. Unfortunate