All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH] tcg: Use uintptr_t in tcg_malloc implementation
Date: Fri, 11 Jul 2025 16:31:57 +0200	[thread overview]
Message-ID: <1f1dfa78e9c53769b95ff3a8b58efef7dbafdc8f.camel@linux.ibm.com> (raw)
In-Reply-To: <20250710225053.168169-1-richard.henderson@linaro.org>

On Thu, 2025-07-10 at 16:50 -0600, 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 <iii@linux.ibm.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> 
> Supercedes: 20250618183759.9197-1-iii@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(-)

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>


      parent reply	other threads:[~2025-07-11 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-10 22:50 [PATCH] tcg: Use uintptr_t in tcg_malloc implementation Richard Henderson
2025-07-11 10:20 ` Philippe Mathieu-Daudé
2025-07-11 14:31 ` Ilya Leoshkevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f1dfa78e9c53769b95ff3a8b58efef7dbafdc8f.camel@linux.ibm.com \
    --to=iii@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.