summaryrefslogtreecommitdiffstats
path: root/include/exec/exec-all.h
diff options
context:
space:
mode:
authorMark Cave-Ayland2016-01-11 20:10:42 +0100
committerJohn Snow2016-01-11 20:10:42 +0100
commit97225170f6ee6d0ad8653916c7a5e4508cbffc18 (patch)
treedf7207c3f5e20598f4a972957d61ff2a04ee53b9 /include/exec/exec-all.h
parentMerge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160111-... (diff)
downloadqemu-97225170f6ee6d0ad8653916c7a5e4508cbffc18.tar.gz
qemu-97225170f6ee6d0ad8653916c7a5e4508cbffc18.tar.xz
qemu-97225170f6ee6d0ad8653916c7a5e4508cbffc18.zip
macio: fix overflow in lba to offset conversion for ATAPI devices
As the IDEState lba field is an int32_t, make sure we cast to int64_t before shifting to calculate the offset. Otherwise we end up with an overflow when trying to access sectors beyond 2GB as can occur when using DVD images. [Maintainer edit: fixed extraneous parentheses. --js] Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 1451928613-29476-1-git-send-email-mark.cave-ayland@ilande.co.uk Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions