[Qemu-devel] Re: [PATCH] pci: fix pci_default_read_config().

2010-05-28 Thread Isaku Yamahata
On Thu, May 27, 2010 at 05:13:16PM +0300, Michael S. Tsirkin wrote: > On Thu, May 27, 2010 at 02:44:42PM +0900, Isaku Yamahata wrote: > > address and config_size are both unsigned. > > So check which is bigger before minus operation. > > Otherwise the result of minus can be unexpected > > big value

[Qemu-devel] Re: [PATCH] pci: fix pci_default_read_config().

2010-05-27 Thread Michael S. Tsirkin
On Thu, May 27, 2010 at 02:44:42PM +0900, Isaku Yamahata wrote: > address and config_size are both unsigned. > So check which is bigger before minus operation. > Otherwise the result of minus can be unexpected > big value. > > Signed-off-by: Isaku Yamahata An this happen in practice? If yes, how