aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-07-28 19:25:45 +0200
committerThomas Huth <thuth@redhat.com>2025-09-09 09:35:55 +0200
commit2dbaf58bbe78f415ec867dc238f90321ed8a3f62 (patch)
tree70df4b8536427f47b32dd6af4c8250d35c15066d /scripts/qapi/parser.py
parent7af325c23ef5e94b77864d2d2ca64da4a5a35f30 (diff)
downloadqemu-2dbaf58bbe78f415ec867dc238f90321ed8a3f62.zip
qemu-2dbaf58bbe78f415ec867dc238f90321ed8a3f62.tar.gz
qemu-2dbaf58bbe78f415ec867dc238f90321ed8a3f62.tar.bz2
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>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions