Applied. Thanks.
Regards,
Anthony Liguori
On Tue, May 07, 2013 at 01:42:49PM +0800, Jason Wang wrote:
> There are several several issues in the current checking:
>
> - The check was based on the minus of unsigned values which can overflow
> - It was done after .{set|get}_config() which can lead crash when config_len
> is zero since vdev
On Tue, May 07, 2013 at 01:42:49PM +0800, Jason Wang wrote:
> There are several several issues in the current checking:
>
> - The check was based on the minus of unsigned values which can overflow
> - It was done after .{set|get}_config() which can lead crash when config_len
> is zero since vdev
There are several several issues in the current checking:
- The check was based on the minus of unsigned values which can overflow
- It was done after .{set|get}_config() which can lead crash when config_len
is zero since vdev->config is NULL
Fix this by:
- Validate the address in virtio_pci_c