Files
cosmos-sdk/crypto
Emmanuel T Odeke 417832fa9a crypto/types: check for overflow and unreasonably large element count (#9163)
Ensure that we don't pass overflowed values into make, because
a clever attacker could see that to cause:

    (bits+7)/8

to become negative, they just have to make (bits+7) become negative
simply by >=maxint-6

but also reject unreasonably large element count like >2**32, which
while arbitrary is super duper large for a bit array.

Fixes #9162
2021-04-21 20:09:41 -07:00
..
2021-03-04 12:29:48 +00:00
2021-03-25 14:53:22 +00:00
2021-03-26 10:20:46 +00:00
2020-12-02 14:50:50 +01:00