diff options
author | Thomas Huth <thuth@redhat.com> | 2025-07-30 09:27:09 +0200 |
---|---|---|
committer | Kostiantyn Kostiuk <kkostiuk@redhat.com> | 2025-09-01 14:02:18 +0300 |
commit | 83f6dceb8f5c0a1efe806a9a4905cbc743a8a378 (patch) | |
tree | 6bdc83e5f8b8527bf9652a0ff018eb0c677e4afb /rust/qemu-api/src | |
parent | e771ba98de25c9f43959f79fc7099cf7fbba44cc (diff) | |
download | qemu-83f6dceb8f5c0a1efe806a9a4905cbc743a8a378.zip qemu-83f6dceb8f5c0a1efe806a9a4905cbc743a8a378.tar.gz qemu-83f6dceb8f5c0a1efe806a9a4905cbc743a8a378.tar.bz2 |
qga: Fix ubsan warning
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 <thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250730072709.27077-1-thuth@redhat.com
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions