Files
xemu/system
Thomas Huth 2dbaf58bbe system/physmem: Silence warning from ubsan
When compiling QEMU with --enable-ubsan there is a undefined behavior
warning when running the bios-tables-test for example:

 .../system/physmem.c:3243:13: runtime error: applying non-zero offset 262144 to null pointer
    #0 0x55ac1df5fbc4 in address_space_write_rom_internal .../system/physmem.c:3243:13

The problem is that buf is indeed NULL if the function is e.g. called
with type == FLUSH_CACHE. Add a check to fix the issue.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250728172545.314178-1-thuth@redhat.com>
2025-09-09 09:35:55 +02:00
..
2025-04-23 14:08:44 -07:00
2025-04-23 14:08:44 -07:00
2025-05-28 08:07:59 +01:00