mirror of
https://github.com/xqemu/xqemu.git
synced 2025-04-02 11:11:56 -04:00
This fixes two possible division by zero crashes: In bochs_open() and in
seek_to_sector().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 8e53abbc20
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
26 lines
891 B
Text
26 lines
891 B
Text
QA output created by 078
|
|
|
|
== Read from a valid image ==
|
|
read 512/512 bytes at offset 0
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
== Negative catalog size ==
|
|
qemu-io: can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
|
no file open, try 'help open'
|
|
|
|
== Overflow for catalog size * sizeof(uint32_t) ==
|
|
qemu-io: can't open device TEST_DIR/empty.bochs: Catalog size is too large
|
|
no file open, try 'help open'
|
|
|
|
== Too small catalog bitmap for image size ==
|
|
qemu-io: can't open device TEST_DIR/empty.bochs: Catalog size is too small for this disk size
|
|
no file open, try 'help open'
|
|
|
|
== Negative extent size ==
|
|
qemu-io: can't open device TEST_DIR/empty.bochs: Extent size 4294967295 is too large
|
|
no file open, try 'help open'
|
|
|
|
== Zero extent size ==
|
|
qemu-io: can't open device TEST_DIR/empty.bochs: Extent size may not be zero
|
|
no file open, try 'help open'
|
|
*** done
|