
9 Jul
2013
9 Jul
'13
12:07 a.m.
On 07/08/2013 11:04 PM, jtomko@redhat.com wrote:
I wonder if we should forbid values larger than INT_MAX as well, since virDomainDefRejectDuplicateControllers uses -1 as 'no controllers' and qemuDomainAssignPCIAddresses uses it for 'no PCI buses'.
If it overflowed, this could result in some weird errors (but that many PCI bridges wouldn't be usable anyway).
Jan
Yes, you are right. Thanks for your kind mention. The index value should be limited in INT_MAX. I will resent the patch.