aboutsummaryrefslogtreecommitdiff
path: root/docs/specs
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-11-02 18:32:06 -0500
committerKevin Wolf <kwolf@redhat.com>2015-11-11 16:25:47 +0100
commit95334230637cef9fbd199bb79a56271ec73d4732 (patch)
tree7bdb909de8cdd28e9dca53221c94d3a0889a0543 /docs/specs
parentbcdce5a73cb28f32b3ca3a51e8fa89879685e015 (diff)
downloadqemu-95334230637cef9fbd199bb79a56271ec73d4732.zip
qemu-95334230637cef9fbd199bb79a56271ec73d4732.tar.gz
qemu-95334230637cef9fbd199bb79a56271ec73d4732.tar.bz2
qcow2: avoid misaligned 64bit bswap
If we create a buffer directly on the stack by using 12 bytes, there's no guarantee the 64bit value we want to swap will be aligned, which could cause errors with undefined behavior. Spotted with clang -fsanitize=undefined and observed in iotests 15, 26, 44, 115 and 121. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'docs/specs')
0 files changed, 0 insertions, 0 deletions