summary refs log tree commit diff stats
path: root/tests/qtest/migration/compression-tests.c
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2024-12-09 17:44:23 -0300
committerFabiano Rosas <farosas@suse.de>2025-01-02 16:00:50 -0300
commit117221ad999a3d027d38ae9ddbaa94d4e1d6a303 (patch)
treedb6f928b756632d62abd11d03c337bd21e3a113f /tests/qtest/migration/compression-tests.c
parentcd196679f413c7905143e5eb9b7d63b7a7eea158 (diff)
downloadfocaccia-qemu-117221ad999a3d027d38ae9ddbaa94d4e1d6a303.tar.gz
focaccia-qemu-117221ad999a3d027d38ae9ddbaa94d4e1d6a303.zip
tests/qtest/migration: Initialize buffer in probe_o_direct_support
Valgrind complains about the probe_o_direct_support() function reading
from an uninitialized buffer. For probing O_DIRECT support we don't
actually need to write to the file, just make sure the pwrite call
doesn't reject the write. Still, write zeroes to the buffer to
suppress the warning.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20241209204427.17763-3-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'tests/qtest/migration/compression-tests.c')
0 files changed, 0 insertions, 0 deletions