Re: [Qemu-devel] [PATCH for-2.0 39/47] block: vdi bounds check qemu-io tests

2014-03-31 Thread Stefan Hajnoczi
On Fri, Mar 28, 2014 at 08:26:26PM -0400, Jeff Cody wrote: > On Sat, Mar 29, 2014 at 12:22:58AM +0100, Max Reitz wrote: > > On 26.03.2014 13:06, Stefan Hajnoczi wrote: > > >+echo "Test 7: Block Size != 1MB; too large test (1MB + 1)" > > >+poke_file "$TEST_IMG" "$bs_offset" "\x00\x00\x11\x00" # inv

Re: [Qemu-devel] [PATCH for-2.0 39/47] block: vdi bounds check qemu-io tests

2014-03-28 Thread Jeff Cody
On Sat, Mar 29, 2014 at 12:22:58AM +0100, Max Reitz wrote: > On 26.03.2014 13:06, Stefan Hajnoczi wrote: > >From: Jeff Cody > > > >This test checks for proper bounds checking of some VDI input > >headers. The following is checked: > > > >1. Max image size (1024TB) with the appropriate Blocks In I

Re: [Qemu-devel] [PATCH for-2.0 39/47] block: vdi bounds check qemu-io tests

2014-03-28 Thread Max Reitz
On 26.03.2014 13:06, Stefan Hajnoczi wrote: From: Jeff Cody This test checks for proper bounds checking of some VDI input headers. The following is checked: 1. Max image size (1024TB) with the appropriate Blocks In Image value (0x3fff) is detected as valid. 2. Image size exceeding ma

[Qemu-devel] [PATCH for-2.0 39/47] block: vdi bounds check qemu-io tests

2014-03-26 Thread Stefan Hajnoczi
From: Jeff Cody This test checks for proper bounds checking of some VDI input headers. The following is checked: 1. Max image size (1024TB) with the appropriate Blocks In Image value (0x3fff) is detected as valid. 2. Image size exceeding max (1024TB) is seen as invalid 3. Valid image s