Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
CalculateAbsUsedCapacity is guarded against positive and negative overflow. The postive case is unit tested. The negative case is not unit tested.
Need to add a test case for te negative side:
// protect against negative integer overflow if absResValue > 0 && div < 0 {