system: Fix possible integer overflows
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 13 Sep 2019 20:04:03 +0000 (22:04 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 19 Sep 2019 20:29:24 +0000 (22:29 +0200)
commitc844ace9729a906f98d5508dcf145204cbff10dc
tree4fb74aa6f39b466d87d2aba53514ed2a5ddd99d6
parent62dc8c0efe1e8acd694b893effd973a295c5b676
system: Fix possible integer overflows

This multiplication was done on 32 bit integers before, explicitly cast
them to 64 bit values before to make sure the multiplication is done on
64 bit numbers.

Coverity: #1412417, #1412410, #1412409, #1412411, #1412424, #1412407
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
system.c