You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decoding of long data may lead to panic, e.g. 1111...111 (133 times) which is encoding of 133 zero bytes.
let data = [0;133];let encoded = data.to_base58();
encoded.from_base58().unwrap();
Debug build reports attempt to subtract with overflow, while Release issues range start index 18446744073709551615 out of range for slice of length 132.
It is mentioned here that this works only for data up to 128 bytes, but probably it should be stated more clearly and handled via Result.
The text was updated successfully, but these errors were encountered:
Decoding of long data may lead to panic, e.g.
1111...111
(133 times) which is encoding of 133 zero bytes.Debug build reports
attempt to subtract with overflow
, while Release issuesrange start index 18446744073709551615 out of range for slice of length 132
.It is mentioned here that this works only for data up to 128 bytes, but probably it should be stated more clearly and handled via
Result
.The text was updated successfully, but these errors were encountered: