Skip to content

Commit

Permalink
fix address decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Jul 1, 2022
1 parent 2bf83b6 commit bf59ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool decode_address(const char *encoded, size_t encsize, void *out, size_t outsi

b58_sha256_impl = sha256;

if (outsize < AddressLength) return false;
if (encsize < EncodedAddressLength || outsize < AddressLength) return false;

decsize = sizeof(decoded);
if (b58tobin(decoded, &decsize, encoded, encsize) == false) return false;
Expand Down

0 comments on commit bf59ae7

Please sign in to comment.