-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic when decoding bech32 string containing an uppercase 'O' #22
Comments
I had a look at the code from before the introduction of |
Well that certainly is a bug! What were you thinking of using for fuzz testing? |
The fuzzing code can probaly be copied from |
Fuzz tests in rust-bitcoin/rust-bitcoin#100 uncovered the bug that if the bech32 data part contains an uppercase 'O' the parser panics. This is due to insufficient checks that only check the lowercase variants of the forbidden characters (before normalizing them to their lowercase variant):
To avoid such issues in the future I will have a look at fuzz testing this crate (#21).
The text was updated successfully, but these errors were encountered: