ssg / SimpleBase

.NET library for encoding/decoding Base16, Base32, Base58 and Base85.
Apache License 2.0
147 stars 21 forks source link

Exception when decoding array of zeros #21

Closed puuuuh closed 3 years ago

puuuuh commented 3 years ago

SimpleBase v2.1.0 works fine, but with SimpleBase v3.0.0+ i got exception

static void Main(string[] args) { SimpleBase.Base58.Bitcoin.Decode("11111111111111111111111111"); }

Unhandled exception. System.InvalidOperationException: Output buffer was too small while decoding Base58
   at SimpleBase.Base58.Decode(ReadOnlySpan`1 text)
   at TestAddress.Program.Main(String[] args) in /home/puh/RiderProjects/TestAddress/TestAddress/Program.cs:line 9
ssg commented 3 years ago

This is fixed in 3.0.2.