Re: [Qemu-devel] [PATCH] Fix overflow in i440fx_init()

2010-05-28 Thread Aurelien Jarno
On Sun, May 09, 2010 at 02:51:13PM +0300, Avi Kivity wrote: The ram_size parameter can be larger than an int, so it may be truncated. Fix by using the correct type. Thanks, applied. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.h |2 +- hw/piix_pci.c |2 +- 2 files

[Qemu-devel] [PATCH] Fix overflow in i440fx_init()

2010-05-09 Thread Avi Kivity
The ram_size parameter can be larger than an int, so it may be truncated. Fix by using the correct type. Signed-off-by: Avi Kivity a...@redhat.com --- hw/pc.h |2 +- hw/piix_pci.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index