]> Git Repo - qemu.git/commit
hd-geo-test: Clean up use of buf[] in create_qcow2_with_mbr()
authorMarkus Armbruster <[email protected]>
Tue, 17 Mar 2020 09:23:54 +0000 (10:23 +0100)
committerJohn Snow <[email protected]>
Tue, 17 Mar 2020 14:23:14 +0000 (10:23 -0400)
commit6e9d611a1b4f858962cccfe16625bd82aa894e25
treef9dba65a071028a1fd82e49f30bb8d3ee149ee74
parent1a519323d3e8425f0cf58fc85a346237edf8aeac
hd-geo-test: Clean up use of buf[] in create_qcow2_with_mbr()

valgrind reports write unitialized bytes from buf[].  Clear them.

ASan reports we store to misaligned address in buf[].  Use stl_le_p()
for that.

Cc: Sam Eiderman <[email protected]>
Cc: John Snow <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20200317092354[email protected]
Signed-off-by: John Snow <[email protected]>
tests/qtest/hd-geo-test.c
This page took 0.027483 seconds and 4 git commands to generate.