There are a few points within the modification control flow where numbers are added/subtracted/etc., which in some cases may be large enough to cause panic overflow. Need to change logic at these points to perform checked operations i.e. u64.checked_sub(u64) etc.
Overall need to do extensive code review to ensure any and all possibly dangerous numeric conditions are handled appropriately-- safe up/down casting, checked operations, etc.
There are a few points within the modification control flow where numbers are added/subtracted/etc., which in some cases may be large enough to cause panic overflow. Need to change logic at these points to perform checked operations i.e.
u64.checked_sub(u64)
etc.Overall need to do extensive code review to ensure any and all possibly dangerous numeric conditions are handled appropriately-- safe up/down casting, checked operations, etc.