Check for overflow of the wallet account counter #120

Open
opened 2 years ago by duke · 1 comments
duke commented 2 years ago
Owner

This affects Hush as well:

https://github.com/zcash/zcash/issues/5487

What this means is that there is a maximum number of addresses that are possible to create inside a single wallet.dat, roughly 2^31 addresses, since saplingAccountCounter is a uint32_t in our codebase.

We should probably just check for a huge value of saplingAccountCounter and then refuse to make any new addresses, before we get to the overflow value.

This affects Hush as well: https://github.com/zcash/zcash/issues/5487 What this means is that there is a maximum number of addresses that are possible to create inside a single wallet.dat, roughly 2^31 addresses, since `saplingAccountCounter` is a uint32_t in our codebase. We should probably just check for a huge value of saplingAccountCounter and then refuse to make any new addresses, before we get to the overflow value.
Poster
Owner

Upstream fix:

0da6bcef72

Upstream fix: https://github.com/zcash/zcash/commit/0da6bcef7254d2da2df50e77f87b1d0da6eac8f5
duke added the
bug
label 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.