On 30.07.2025 10:27, Thomas Huth wrote:
From: Thomas Huth <th...@redhat.com>

When compiling QEMU with --enable-ubsan there is a undefined behavior
warning when running "make check":

  .../qga/commands-linux.c:452:15: runtime error: applying non-zero offset 5 to 
null pointer
  #0 0x55ea7b89450c in build_guest_fsinfo_for_pci_dev 
..../qga/commands-linux.c:452:15

Fix it by avoiding the additional pointer variable here and use an
"offset" integer variable instead.

Signed-off-by: Thomas Huth <th...@redhat.com>

It's a nice cleanup too.

Thanks,  queued.

/mjt


Reply via email to