]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Data overrun may lead to divide by zero
authorJohn Ferlan <jferlan@redhat.com>
Thu, 27 Sep 2018 22:49:41 +0000 (18:49 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 1 Oct 2018 18:27:31 +0000 (14:27 -0400)
commitefdbfe57c79a15ab47998b65044c4cc8c7c66771
tree5ec3eae29dd0971351c3bd2ab85107f083821b87
parentfddf92836a55679d9ac5ab09651167634434ef95
util: Data overrun may lead to divide by zero

Commit 87a8a30d6 added the function based on the virsh function,
but used an unsigned long long instead of a double and thus that
limits the maximum result.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virutil.c