GEO-network-client
GEO-network-client copied to clipboard
[Long Arithmetic] Potential overflow of TrustLineBalance
TrustLineBalance is now defined as boost::multiprecision::uint256 (fixed precision). In case of operation (2**256 -1) + (2**256 -1) this type overflows. We should consider fixing this in one of 2 ways possible:
- Increase balance to 2**257
- or perform all math operations with strong checks for overflow occured.