
5 Sep
2014
5 Sep
'14
6:52 p.m.
On 09/05/2014 06:00 AM, Peter Krempa wrote:
On 09/05/14 13:36, Eric Blake wrote:
The previous patch hoisted some bounds checks to the callers; but someone that is not aware of the hoisted check could now try passing an integer between LLONG_MAX and ULLONG_MAX. As a safety measure, add new json conversion modes that let libvirt error out early instead of pass bad numbers to qemu, if the caller ever makes a mistake due to later refactoring.
Exactly what I had in mind. ACK.
Thanks; I've pushed 4, 5, and 5.5 now (still double-checking the rest of the series, and will push as I go). -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org