cosmos-sdk/crypto/types
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
..
multisig multisig checks and optimization (#8600) 2021-02-23 15:55:06 +00:00
compact_bit_array.go crypto/types: check for overflow and unreasonably large element count (#9163) 2021-04-21 20:09:41 -07:00
compact_bit_array_test.go crypto/types: check for overflow and unreasonably large element count (#9163) 2021-04-21 20:09:41 -07:00
multisig.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
types.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00