]> git.proxmox.com Git - mirror_qemu.git/commit - hw/pc.h
Fix overflow in i440fx_init()
authorAvi Kivity <avi@redhat.com>
Sun, 9 May 2010 11:51:13 +0000 (14:51 +0300)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 28 May 2010 19:33:59 +0000 (21:33 +0200)
commit97679527bf2f002225d08cfb93f840cef449ac0e
tree10658c03eeb795084ff06a269326a7432cb94ba4
parent9ba8c3f41d47f2051ea4bdb7156978f941ea7324
Fix overflow in i440fx_init()

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 <avi@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/pc.h
hw/piix_pci.c