Re: [PATCH] add checking index for pci-bridge controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>2) That seems like a reasonable check for the index of *any* controller,
>not just pci-bridge. You could either put in a check right after the
>call to virStrToLong_i(), or alternately call virStrToLong_ui() instead
>(you would have to do it into a temporary variable, or change the
>definition of idx to be unsigned int (will size_t work here?). I'm not
>sure if there's a specific reason why idx was declared signed instead,
>as I haven't examined the code in detail, but it's very likely we could
>change it with no ill effect.

Thanks Laine, I will modify the code to call virStrToLong_ui(), and resend the patch.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]