Re: [Qemu-devel] [PATCH 1/2] block: Detect multiplication overflow in bdrv_getlength

2015-05-15 Thread Fam Zheng
On Fri, 05/15 10:10, Markus Armbruster wrote: > Fam Zheng writes: > > > Bogus image may have a large total_sectors that will overflow the > > multiplication. For cleanness, fix the return code so the error message > > will be meaningful. > > > > Reported-by: Richard W.M. Jones > > Signed-off-by:

Re: [Qemu-devel] [PATCH 1/2] block: Detect multiplication overflow in bdrv_getlength

2015-05-15 Thread Markus Armbruster
Fam Zheng writes: > Bogus image may have a large total_sectors that will overflow the > multiplication. For cleanness, fix the return code so the error message > will be meaningful. > > Reported-by: Richard W.M. Jones > Signed-off-by: Fam Zheng > --- > block.c | 1 + > 1 file changed, 1 insert

[Qemu-devel] [PATCH 1/2] block: Detect multiplication overflow in bdrv_getlength

2015-05-14 Thread Fam Zheng
Bogus image may have a large total_sectors that will overflow the multiplication. For cleanness, fix the return code so the error message will be meaningful. Reported-by: Richard W.M. Jones Signed-off-by: Fam Zheng --- block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block.c b/block.