]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: check if domiftune parameters fit into UINT
authorJán Tomko <jtomko@redhat.com>
Thu, 26 Jun 2014 08:06:57 +0000 (10:06 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 4 Aug 2014 14:59:27 +0000 (16:59 +0200)
commitee668206cd87afffa26e0fcd49d16b8889ffd869
treedadf8630141c3b48f509d3b77a364d3fa65dd0bf
parent4a85bf3e2fa703fdc14e8c49d5017ef04832a1d7
virsh: check if domiftune parameters fit into UINT

We parse the bandwidth rates as unsinged long long,
then try to fit them in VIR_TYPED_PARAM_UINT.

Report an error if they exceed UINT_MAX instead of
quietly using wrong values.

https://bugzilla.redhat.com/show_bug.cgi?id=1043735
tools/virsh-domain.c