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
|
||
|---|---|---|
| .. | ||
| multisig | ||
| compact_bit_array_test.go | ||
| compact_bit_array.go | ||
| multisig.pb.go | ||
| types.go | ||