Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x/bank/types: fix AddressFromBalancesStore address length overflow (#…
…9112) addrLen is encoded in a byte, so it's an uint8. The code in AddressFromBalancesStore cast it to int for bound checking, but wrongly uses "addrLen+1", which can be overflow. To fix this, just cast addrLen once and use it in all places. Found by fuzzing added in #9060. Fixes #9111
- Loading branch information