[libvirt] [PATCHv3.5 05.5/18] blockjob: add new monitor json conversions

2014-09-05 Thread Eric Blake
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

Re: [libvirt] [PATCHv3.5 05.5/18] blockjob: add new monitor json conversions

2014-09-05 Thread Peter Krempa
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

Re: [libvirt] [PATCHv3.5 05.5/18] blockjob: add new monitor json conversions

2014-09-05 Thread Eric Blake
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