Re: [Qemu-devel] [PATCH] bochs: Fix catalog size check

2014-04-09 Thread Laszlo Ersek
On 04/09/14 13:14, Kevin Wolf wrote: > The old check was off by a factor of 512 and didn't consider cases where > we don't get an exact division. This could lead to an out-of-bounds > array access in seek_to_sector(). > > Signed-off-by: Kevin Wolf > --- > block/bochs.c | 14

[Qemu-devel] [PATCH] bochs: Fix catalog size check

2014-04-09 Thread Kevin Wolf
The old check was off by a factor of 512 and didn't consider cases where we don't get an exact division. This could lead to an out-of-bounds array access in seek_to_sector(). Signed-off-by: Kevin Wolf --- block/bochs.c | 14 +++--- tests/qemu-iotests/078 | 6 +- tes