]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Resolve Coverity OVERFLOW_BEFORE_WIDEN
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 14:34:43 +0000 (10:34 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 11:33:19 +0000 (07:33 -0400)
commitf832aa32221d841360572d4279defa11a04efbcb
tree4a63ba96269a5381e9b797ad002c6e3cc1a271fb
parent9f845b1115f0b5be1554893f1b9ca2d5a3b8c7cd
storage: Resolve Coverity OVERFLOW_BEFORE_WIDEN

Coverity complains that when multiplying to 32 bit values that eventually
will be stored in a 64 bit value that it's possible the math could
overflow unless one of the values being multiplied is type cast to
the proper size.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_disk.c