]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: fix a integer boundary error
authorGuannan Ren <gren@redhat.com>
Tue, 5 Mar 2013 15:13:21 +0000 (23:13 +0800)
committerGuannan Ren <gren@redhat.com>
Wed, 6 Mar 2013 03:46:33 +0000 (11:46 +0800)
commitb38a040a2996ea5e0ff4ef41e69114e3681592ba
tree6c8457d3f51bdf04a5d5ebd46008edf8b34561ec
parent7fc4864a3a28018ee41b56b1069c34878d417565
util: fix a integer boundary error

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