[libvirt] [PATCH 1/2] util: fix a integer boundary error

Eric Blake eblake at redhat.com
Tue Mar 5 16:50:05 UTC 2013


On 03/05/2013 09:29 AM, Guannan Ren wrote:
> A value which is equal to a integer maximum such as LLONG_MAX is
> a valid integer value.
> 
> The patch fix the following error:
> 1, virsh memtune vm --swap-hard-limit -1
> 2, virsh start vm
> In debug mode, it shows error like:
> virScaleInteger:1813 : numerical overflow:\
>                        value too large: 9007199254740991KiB
> ---
>  src/util/virutil.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130305/5998fa88/attachment-0001.sig>


More information about the libvir-list mailing list