cosmos-sdk/x/bank/types
Cuong Manh Le 3a5550a938
x/bank/types: fix AddressFromBalancesStore panics with invalid keys (#9061)
Currently, AddressFromBalancesStore uses the input key without any
validation, so an empty key or an invalid key length cause it panics.

This commit fixes the problem, by returning an error in case of invalid
key was passed.

Found by fuzzing added in #9060.

Fixed #9062
2021-04-07 16:20:38 +00:00
..
authz.pb.go x/authz: Add DelegateAuthorization, UndelegateAuthorization (#8472) 2021-02-20 06:57:57 +00:00
balance.go store/cachekv, x/bank/types: algorithmically fix pathologically slow code (#8719) 2021-02-27 07:26:22 -08:00
balance_test.go store/cachekv, x/bank/types: algorithmically fix pathologically slow code (#8719) 2021-02-27 07:26:22 -08:00
bank.pb.go Supply by denom Migrations (#8780) 2021-03-05 14:11:19 +00:00
codec.go Index supply by denom (#8517) 2021-03-03 09:58:16 +00:00
errors.go x/bank/types: fix AddressFromBalancesStore panics with invalid keys (#9061) 2021-04-07 16:20:38 +00:00
events.go [bank]: add balance tracking events (#8656) 2021-02-25 18:15:02 +00:00
expected_keepers.go Update x/auth to use Any (#6165) 2020-05-20 19:21:00 +00:00
genesis.go Fix genesis supply handling (#8930) 2021-03-22 18:15:29 +00:00
genesis.pb.go cosmos-reflection: extend to support writing by reflection clients (#8965) 2021-04-07 00:33:54 +01:00
genesis_test.go auth: allow 0 coin accounts in genesis (#8714) 2021-02-26 15:41:48 +00:00
key.go x/bank/types: fix AddressFromBalancesStore panics with invalid keys (#9061) 2021-04-07 16:20:38 +00:00
key_test.go x/bank/types: fix AddressFromBalancesStore panics with invalid keys (#9061) 2021-04-07 16:20:38 +00:00
metadata.go bank: name and symbol metadata fields (#8677) 2021-02-24 20:06:04 -03:00
metadata_test.go bank: name and symbol metadata fields (#8677) 2021-02-24 20:06:04 -03:00
msgs.go [rosetta] implement balance tracking and redo tx construction (#8729) 2021-03-11 15:01:29 +00:00
msgs_test.go Refactor store keys for variable-length addresses (#8363) 2021-02-01 13:17:44 +00:00
params.go Remove viper in Staking module. (#6631) 2020-07-08 22:00:34 +02:00
params_test.go types: update coin regex (#7027) 2020-08-14 09:09:53 +00:00
querier.go Change `address` from bytes to bech32 strings (#7242) 2020-09-25 10:25:37 +00:00
query.pb.go Paginate supply queries (#8798) 2021-04-06 14:43:08 +00:00
query.pb.gw.go Paginate supply queries (#8798) 2021-04-06 14:43:08 +00:00
send_authorization.go x/authz: Add DelegateAuthorization, UndelegateAuthorization (#8472) 2021-02-20 06:57:57 +00:00
tx.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00